diff --git a/jasper/richiesta_integrazione_portos2.jrxml b/jasper/richiesta_integrazione_portos2.jrxml new file mode 100644 index 00000000..7f9c1528 --- /dev/null +++ b/jasper/richiesta_integrazione_portos2.jrxml @@ -0,0 +1,403 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.classpath deleted file mode 100644 index 1d33a4b7..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.classpath +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.project deleted file mode 100644 index 61738ef7..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.project +++ /dev/null @@ -1,36 +0,0 @@ - - - portos-autodestroy-portlet - - - - - - org.eclipse.wst.jsdt.core.javascriptValidator - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.wst.common.project.facet.core.builder - - - - - org.eclipse.wst.validation.validationbuilder - - - - - - org.eclipse.jem.workbench.JavaEMFNature - org.eclipse.wst.common.modulecore.ModuleCoreNature - org.eclipse.wst.common.project.facet.core.nature - org.eclipse.jdt.core.javanature - org.eclipse.wst.jsdt.core.jsNature - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/.jsdtscope b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/.jsdtscope deleted file mode 100644 index 840a01d5..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index c537b630..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -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.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jst.jsp.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jst.jsp.core.prefs deleted file mode 100644 index 3a5c98db..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jst.jsp.core.prefs +++ /dev/null @@ -1,3 +0,0 @@ -eclipse.preferences.version=1 -validateFragments=false -validation.use-project-settings=true diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.component deleted file mode 100644 index 22f1feba..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.component +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - uses - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml deleted file mode 100644 index 500dfccb..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml deleted file mode 100644 index af295340..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.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/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b6..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.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/portlets/portos-autodestroy-portlet/.tern-project b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.tern-project deleted file mode 100644 index a185ba0d..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.tern-project +++ /dev/null @@ -1 +0,0 @@ -{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/build.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/build.xml deleted file mode 100644 index 8d0c32c9..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/build.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/META-INF/MANIFEST.MF b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/META-INF/MANIFEST.MF deleted file mode 100644 index 254272e1..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/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/portlets/portos-autodestroy-portlet/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/.gitignore deleted file mode 100644 index 840e7d31..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/classes/ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-display.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-display.xml deleted file mode 100644 index ecddbae4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-display.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-plugin-package.properties b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-plugin-package.properties deleted file mode 100644 index 56ef65c4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-plugin-package.properties +++ /dev/null @@ -1,13 +0,0 @@ -name=Portos Autodestroy Portos -module-group-id=liferay -module-incremental-version=1 -tags= -short-description= -long-description= -change-log= -page-url=http://www.liferay.com -author=Liferay, Inc. -licenses=LGPL -liferay-versions=6.2.0+ -required-deployment-contexts=\ - portos-bo-portlet diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-portlet.xml deleted file mode 100644 index 950a1514..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-portlet.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - 1 - /icon.png - /css/main.css - - /js/main.js - - 1-portlet - - - administrator - Administrator - - - guest - Guest - - - power-user - Power User - - - user - User - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/portlet.xml deleted file mode 100644 index 723c4d5f..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/portlet.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - 1 - Auto Destroy - - it.tref.liferay.portos.autodestroy.portlet.AutoDestroyPortlet - - - view-template - /html/autodestroy/view.jsp - - 0 - - text/html - view - - - Auto Destroy - 1 - - - - administrator - - - guest - - - power-user - - - user - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/autodestroy/portlet/AutoDestroyPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/autodestroy/portlet/AutoDestroyPortlet.java deleted file mode 100644 index 7aa996be..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/autodestroy/portlet/AutoDestroyPortlet.java +++ /dev/null @@ -1,32 +0,0 @@ -package it.tref.liferay.portos.autodestroy.portlet; - -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; - -import javax.portlet.ActionRequest; -import javax.portlet.ActionResponse; - -import com.liferay.portal.kernel.cache.CacheRegistryUtil; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.servlet.SessionErrors; -import com.liferay.util.bridges.mvc.MVCPortlet; - -/** - * Portlet implementation class AutoDestroyPortlet - */ -public class AutoDestroyPortlet extends MVCPortlet { - - private static Log _log = LogFactoryUtil.getLog(AutoDestroyPortlet.class.getName()); - - public void autoDestroy(ActionRequest actionRequest, ActionResponse actionResponse) { - - try { - IntPraticaLocalServiceUtil.clearDb(); - CacheRegistryUtil.clear(); - } catch (Exception e) { - SessionErrors.add(actionRequest, "errore"); - _log.error(e, e); - } - } - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/aui.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/aui.tld deleted file mode 100644 index 1eeac884..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/aui.tld +++ /dev/null @@ -1,2568 +0,0 @@ - - - - aui:.]]> - 1.0 - aui - http://alloy.liferay.com/tld/aui - - - button-item - com.liferay.taglib.aui.ButtonItemTag - JSP - - ]]> - activeState - false - true - boolean - - - ]]> - boundingBox - false - true - java.lang.String - - - ]]> - classNames - false - true - java.lang.Object - - - ]]> - contentBox - false - true - java.lang.String - - - boundingBox.]]> - cssClass - false - true - java.lang.String - - - ]]> - defaultState - false - true - boolean - - - ]]> - depth - false - true - java.lang.Object - - - ]]> - destroyed - false - true - boolean - - - ]]> - disabled - false - true - boolean - - - ]]> - focused - false - true - boolean - - - {fn: // The function to execute - context: // The context to execute the function in - type: // The type of event to listen for (defaults to "click") - }]]> - handler - false - true - java.lang.Object - - - ]]> - height - false - true - java.lang.Object - - - boundingBox when - visible is set to - false.]]> - hideClass - false - true - java.lang.String - - - ]]> - hoverState - false - true - boolean - - - ]]> - icon - false - true - java.lang.String - - - aui-button-icon.]]> - iconNode - false - true - java.lang.String - - - ]]> - buttonitemId - false - true - java.lang.String - - - ]]> - index - false - true - java.lang.Object - - - ]]> - initialized - false - true - boolean - - - ]]> - label - false - true - java.lang.String - - - aui-button-label.]]> - labelNode - false - true - java.lang.String - - - ]]> - buttonitemParent - false - true - java.lang.Object - - - true the render phase will be autimatically invoked - preventing the .render() manual call.]]> - render - false - true - java.lang.Object - - - ]]> - rendered - false - true - boolean - - - ]]> - root - false - true - java.lang.Object - - - -
0
(Default) Not selected
-
1
Fully selected
-
2
Partially selected
- ]]>
- selected - false - true - java.lang.Object -
- - ]]> - srcNode - false - true - java.lang.String - - - ]]> - strings - false - true - java.lang.Object - - - ]]> - tabIndex - false - true - java.lang.Object - - - ]]> - title - false - true - java.lang.String - - - ]]> - type - false - true - java.lang.String - - - ]]> - useARIA - false - true - boolean - - - ]]> - visible - false - true - boolean - - - ]]> - width - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterActiveStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterBoundingBoxChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterClassNamesChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterContentBoxChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterCssClassChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterDefaultStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterDepthChange - false - true - java.lang.Object - - - - Lifecycle event for the destroy phase, - fired prior to destruction. Invoking the preventDefault - method on the event object provided to subscribers will - prevent destruction from proceeding. -

-

- Subscribers to the "after" moment of this event, will be notified - after destruction is complete (and as a result cannot prevent - destruction). -

]]>
- afterDestroy - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterDestroyedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterDisabledChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterFocusedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterHandlerChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterHeightChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterHideClassChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterHoverStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterIconChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterIconNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterIdChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterIndexChange - false - true - java.lang.Object - - - - Lifecycle event for the init phase, fired prior to initialization. - Invoking the preventDefault() method on the event object provided - to subscribers will prevent initialization from occuring. -

-

- Subscribers to the "after" momemt of this event, will be notified - after initialization of the object is complete (and therefore - cannot prevent initialization). -

]]>
- afterInit - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterInitializedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterLabelChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterLabelNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterParentChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterRenderChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterRenderedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterRootChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterSelectedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterSrcNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterStringsChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterTabIndexChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterTitleChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterTypeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterUseARIAChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterVisibleChange - false - true - java.lang.Object - - - ]]> - afterContentUpdate - false - true - java.lang.Object - - - - Subscribers to the "on" moment of this event, will be notified - before the widget is rendered. -

-

- Subscribers to the "after" moment of this event, will be notified - after rendering is complete. -

]]>
- afterRender - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterWidthChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onActiveStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onBoundingBoxChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onClassNamesChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onContentBoxChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onCssClassChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onDefaultStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onDepthChange - false - true - java.lang.Object - - - - Lifecycle event for the destroy phase, - fired prior to destruction. Invoking the preventDefault - method on the event object provided to subscribers will - prevent destruction from proceeding. -

-

- Subscribers to the "after" moment of this event, will be notified - after destruction is complete (and as a result cannot prevent - destruction). -

]]>
- onDestroy - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onDestroyedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onDisabledChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onFocusedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onHandlerChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onHeightChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onHideClassChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onHoverStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onIconChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onIconNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onIdChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onIndexChange - false - true - java.lang.Object - - - - Lifecycle event for the init phase, fired prior to initialization. - Invoking the preventDefault() method on the event object provided - to subscribers will prevent initialization from occuring. -

-

- Subscribers to the "after" momemt of this event, will be notified - after initialization of the object is complete (and therefore - cannot prevent initialization). -

]]>
- onInit - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onInitializedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onLabelChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onLabelNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onParentChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onRenderChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onRenderedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onRootChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onSelectedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onSrcNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onStringsChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onTabIndexChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onTitleChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onTypeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onUseARIAChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onVisibleChange - false - true - java.lang.Object - - - ]]> - onContentUpdate - false - true - java.lang.Object - - - - Subscribers to the "on" moment of this event, will be notified - before the widget is rendered. -

-

- Subscribers to the "after" moment of this event, will be notified - after rendering is complete. -

]]>
- onRender - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onWidthChange - false - true - java.lang.Object - - true -
- - - a - com.liferay.taglib.aui.ATag - JSP - - <p> tag could be used for something other than a paragraph.]]> - ariaRole - false - true - java.lang.String - - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.util.Map - - - - href - true - true - java.lang.String - - - - id - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - - lang - false - true - java.lang.String - - - - onClick - false - true - java.lang.String - - - self. Possible values are blank, self, parent, top, and a unique frame's name.]]> - target - false - true - java.lang.String - - - - title - false - true - java.lang.String - - true - - - button - com.liferay.taglib.aui.ButtonTag - JSP - - primary attribute.]]> - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.lang.Object - - - false.]]> - disabled - false - true - boolean - - - - href - false - true - java.lang.String - - - here.]]> - icon - false - true - java.lang.String - - - left.]]> - iconAlign - false - true - java.lang.String - - - - name - false - true - java.lang.String - - - - onClick - false - true - java.lang.String - - - type attribute is set to submit, this value is set to true. For all other types, the value is set to false by default.]]> - primary - false - true - java.lang.Object - - - button, submit, cancel and reset. The default value is button.]]> - type - false - true - java.lang.String - - - href location when a user clicks the button. The default value is false.]]> - useDialog - false - true - boolean - - - value - false - true - java.lang.String - - true - - - <div> tag to wrap <aui:button> components and offer additional styling.]]> - button-row - com.liferay.taglib.aui.ButtonRowTag - JSP - - - cssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - true - - - <aui:row> component.]]> - col - com.liferay.taglib.aui.ColTag - JSP - - - cssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - offset - false - true - int - - - offsetWidth - false - true - int - - - 12. For example, a span of 4 would result in a column width 4/12 (or 1/3) of the total width of the containing row.]]> - span - false - true - int - - - span attribute. The width is then converted to a span expressed as ((width/100) x 12), rounded to the nearest whole number. For example, a width of 33 would be converted to 3.96, which would be rounded up to a span value of 4.]]> - width - false - true - int - - true - - - aui:col.]]> - column - com.liferay.taglib.aui.ColumnTag - JSP - - 20 would be 20%. The default value is 0.]]> - columnWidth - false - true - int - - - - cssClass - false - true - java.lang.String - - - false.]]> - first - false - true - boolean - - - - id - false - true - java.lang.String - - - false.]]> - last - false - true - boolean - - true - - - component - com.liferay.taglib.aui.ComponentTag - JSP - - defineVar - false - true - boolean - - - excludeAttributes - false - true - java.lang.String - - - javaScriptAttributes - false - true - java.lang.String - - - module - false - true - java.lang.String - - - name - false - true - java.lang.String - - - options - false - true - java.util.Map - - - scriptPosition - false - true - java.lang.String - - - tagPageContext - true - true - javax.servlet.jsp.JspContext - - - useJavaScript - false - true - java.io.Serializable - - - var - false - true - java.lang.String - - true - - - <div> tag to wrap <aui:row> components and offer additional styling.]]> - container - com.liferay.taglib.aui.ContainerTag - JSP - - - cssClass - false - true - java.lang.String - - - true.]]> - fluid - false - true - boolean - - - - id - false - true - java.lang.String - - true - - - <div> tag to wrap form fields and offer additional styling.]]> - field-wrapper - com.liferay.taglib.aui.FieldWrapperTag - JSP - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.lang.Object - - - false.]]> - first - false - true - boolean - - - - helpMessage - false - true - java.lang.String - - - false.]]> - inlineField - false - true - boolean - - - right and left.]]> - inlineLabel - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - false.]]> - last - false - true - boolean - - - - name - false - true - java.lang.String - - - - required - false - true - boolean - - - - <div> tag to group related form elements and offer additional styling.]]> - fieldset - com.liferay.taglib.aui.FieldsetTag - JSP - - - column - false - true - boolean - - - - cssClass - false - true - java.lang.String - - - - helpMessage - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - - label - false - true - java.lang.String - - true - - - - form - com.liferay.taglib.aui.FormTag - JSP - - - action - false - true - java.lang.String - - - - cssClass - false - true - java.lang.String - - - true.]]> - escapeXml - false - true - boolean - - - false.]]> - inlineLabels - false - true - boolean - - - post. Possible values are get and post.]]> - method - false - true - java.lang.String - - - fm.]]> - name - false - true - java.lang.String - - - - onSubmit - false - true - java.lang.String - - - - portletNamespace - false - true - java.lang.String - - - true.]]> - useNamespace - false - true - boolean - - true - - - - icon - com.liferay.taglib.aui.IconTag - JSP - - image attribute.]]> - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.util.Map - - - - id - false - true - java.lang.String - - - icon-edit CSS class by setting the value edit. If an icon image is referenced for cssClass and image, both icons are shown in the component.]]> - image - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - self. Possible values are blank, self, parent, top, and a unique frame's name.]]> - target - false - true - java.lang.String - - - - url - false - true - java.lang.String - - true - - - - input - com.liferay.taglib.aui.InputTag - JSP - - - autoFocus - false - true - boolean - - - - autoSize - false - true - boolean - - - - bean - false - true - java.lang.Object - - - false.]]> - changesContext - false - true - boolean - - - type is radio or checkbox.]]> - checked - false - true - boolean - - - 0.]]> - classPK - false - true - long - - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.lang.Object - - - dateTogglerCheckboxLabel - false - true - java.lang.String - - - - defaultLanguageId - false - true - java.lang.String - - - false.]]> - disabled - false - true - boolean - - - field - false - true - java.lang.String - - - field of the component.]]> - fieldParam - false - true - java.lang.String - - - - first - false - true - boolean - - - - formName - false - true - java.lang.String - - - - helpMessage - false - true - java.lang.String - - - input-group-addon.]]> - helpTextCssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - false.]]> - ignoreRequestValue - false - true - boolean - - - false.]]> - inlineField - false - true - boolean - - - right and left.]]> - inlineLabel - false - true - java.lang.String - - - name attribute's value.]]> - label - false - true - java.lang.String - - - languageId - false - true - java.lang.String - - - - last - false - true - boolean - - - false.]]> - localized - false - true - boolean - - - type is number or range. Note that the max value is inclusive if the input's type is range.]]> - max - false - true - java.lang.Object - - - - model - false - true - java.lang.Class - - - type is number or range. Note that the min value is inclusive if the input's type is range.]]> - min - false - true - java.lang.Object - - - multiple - false - true - boolean - - - - name - true - true - java.lang.String - - - - onChange - false - true - java.lang.String - - - - onClick - false - true - java.lang.String - - - - placeholder - false - true - java.lang.String - - - - prefix - false - true - java.lang.String - - - - required - false - true - boolean - - - textarea.]]> - resizable - false - true - boolean - - - - showRequiredLabel - false - true - boolean - - - - suffix - false - true - java.lang.String - - - - title - false - true - java.lang.String - - - text, hidden, assetCategories, assetTags, textarea, timeZone, password, checkbox, radio, submit, button, color, email, number, range, resource, url, and an empty value. If an empty value or no value is set, the input's type is obtained automatically from the input component's bean.]]> - type - false - true - java.lang.String - - - true.]]> - useNamespace - false - true - boolean - - - - value - false - true - java.lang.Object - - - div that wraps the input component.]]> - wrapperCssClass - false - true - java.lang.String - - true - - - - layout - com.liferay.taglib.aui.LayoutTag - JSP - - - cssClass - false - true - java.lang.String - - true - - - - model-context - com.liferay.taglib.aui.ModelContextTag - JSP - - - bean - false - true - java.lang.Object - - - - defaultLanguageId - false - true - java.lang.String - - - - model - false - true - java.lang.Class - - - - <nav:item> components for an <aui:nav-bar> component.]]> - nav - com.liferay.taglib.aui.NavTag - JSP - - - ariaLabel - false - true - java.lang.String - - - <p> tag could be used for something other than a paragraph.]]> - ariaRole - false - true - java.lang.String - - - collapsible - false - true - boolean - - - - cssClass - false - true - java.lang.String - - - icon - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - true.]]> - useNamespace - false - true - boolean - - true - - - - nav-bar - com.liferay.taglib.aui.NavBarTag - JSP - - - cssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - true - - - <aui:nav-bar> component.]]> - nav-bar-search - com.liferay.taglib.aui.NavBarSearchTag - JSP - - - cssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - file - false - true - java.lang.String - - - - searchContainer - false - true - com.liferay.portal.kernel.dao.search.SearchContainer - - true - - - <aui:nav> component.]]> - nav-item - com.liferay.taglib.aui.NavItemTag - JSP - - href attribute.]]> - anchorCssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - anchorData - false - true - java.lang.Object - - - href attribute.]]> - anchorId - false - true - java.lang.String - - - - ariaLabel - false - true - java.lang.String - - - <p> tag could be used for something other than a paragraph.]]> - ariaRole - false - true - java.lang.String - - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.lang.Object - - - false.]]> - dropdown - false - true - boolean - - - - href - false - true - java.lang.Object - - - - iconCssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - localizeLabel - false - true - boolean - - - false.]]> - selected - false - true - boolean - - - state - false - true - java.lang.String - - - - title - false - true - java.lang.String - - - toggle - false - true - boolean - - - href location when a user clicks the navigation item. The default value is false.]]> - useDialog - false - true - boolean - - - drop-down-menu class. The default value is true.]]> - wrapDropDownMenu - false - true - boolean - - true - - - <aui:select> component.]]> - option - com.liferay.taglib.aui.OptionTag - JSP - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.util.Map - - - false.]]> - disabled - false - true - boolean - - - - label - false - true - java.lang.Object - - - false.]]> - selected - false - true - boolean - - - text-align:right;.]]> - style - false - true - java.lang.String - - - useModelValue - false - true - boolean - - - label attribute.]]> - value - false - true - java.lang.Object - - true - - - panel - com.liferay.taglib.aui.PanelTag - JSP - - collapsed - false - true - boolean - - - collapsible - false - true - boolean - - - id - false - true - java.lang.String - - - label - false - true - java.lang.String - - - - <aui:col> components.]]> - row - com.liferay.taglib.aui.RowTag - JSP - - - cssClass - false - true - java.lang.String - - - row-fluid CSS class to the row. The default value is true. If set to false, the row CSS class is assigned.]]> - fluid - false - true - boolean - - - - id - false - true - java.lang.String - - true - - - - script - com.liferay.taglib.aui.ScriptTag - JSP - - - position - false - true - java.lang.String - - - - use - false - true - java.lang.String - - - - <aui:option> components.]]> - select - com.liferay.taglib.aui.SelectTag - JSP - - - bean - false - true - java.lang.Object - - - false.]]> - changesContext - false - true - boolean - - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", "foo"> would render as the attribute data-class-name = "foo";.]]> - data - false - true - java.util.Map - - - false.]]> - disabled - false - true - boolean - - - false.]]> - first - false - true - boolean - - - - helpMessage - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - ignoreRequestValue - false - true - boolean - - - false.]]> - inlineField - false - true - boolean - - - right and left.]]> - inlineLabel - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - false.]]> - last - false - true - boolean - - - ListTypeImpl.java.]]> - listType - false - true - java.lang.String - - - listTypeFieldName - false - true - java.lang.String - - - true, the select field expands to allow for multiple selections. The default value is false.]]> - multiple - false - true - boolean - - - label attribute and takes the place of the label.]]> - name - true - true - java.lang.String - - - - onChange - false - true - java.lang.String - - - - onClick - false - true - java.lang.String - - - - prefix - false - true - java.lang.String - - - false.]]> - required - false - true - boolean - - - false.]]> - showEmptyOption - false - true - boolean - - - required attribute is set to true. The default value is false.]]> - showRequiredLabel - false - true - boolean - - - - suffix - false - true - java.lang.String - - - - title - false - true - java.lang.String - - - true.]]> - useNamespace - false - true - boolean - - true - - - - spacer - com.liferay.taglib.aui.SpacerTag - JSP - - - - translation-manager - com.liferay.taglib.aui.TranslationManagerTag - JSP - - - availableLocales - false - true - java.util.Locale[] - - - - defaultLanguageId - false - true - java.lang.String - - - editingLanguageId - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - true. If this is set to false, the translation manager will not work entirely.]]> - initialize - false - true - boolean - - - false.]]> - readOnly - false - true - boolean - - - - - validator - com.liferay.taglib.aui.ValidatorTagImpl - JSP - - true.]]> - customValidatorRequired - false - true - boolean - - - - errorMessage - false - true - java.lang.String - - - acceptFiles, alpha, alphanum, date, digits, email, equalTo, iri, max, maxLength, min, minLength, number, required, and url.]]> - name - true - true - java.lang.String - - - - - workflow-status - com.liferay.taglib.aui.WorkflowStatusTag - JSP - - - bean - false - true - java.lang.Object - - - - helpMessage - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - - model - false - true - java.lang.Class - - - true.]]> - showIcon - false - true - boolean - - - true.]]> - showLabel - false - true - boolean - - - 0 (Approved), 1 (Pending), 2 (Draft), 3 (Expired), 4 (Denied), 5 (Inactive), 6 (Incomplete), 7 (Scheduled), and 8 (In-Trash). Any other value defaults to status (Any).]]> - status - false - true - java.lang.Integer - - - - statusMessage - false - true - java.lang.String - - - - version - false - true - java.lang.String - - -
\ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld deleted file mode 100644 index 7c046647..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld +++ /dev/null @@ -1,538 +0,0 @@ - - - - - 1.0 - 1.1 - liferay-portlet - http://liferay.com/tld/portlet - - - - - actionURL - com.liferay.taglib.portlet.ActionURLTag - com.liferay.taglib.portlet.ActionURLTei - JSP - - allowEmptyParam - false - true - - - anchor - false - true - - - copyCurrentRenderParameters - false - true - - - doAsGroupId - false - true - - - doAsUserId - false - true - - - encrypt - false - true - - - escapeXml - false - true - - - name - false - true - - - plid - false - true - - - portletConfiguration - false - true - - - portletMode - false - true - - - portletName - false - true - - - refererGroupId - false - true - - - refererPlid - false - true - - - secure - false - true - - - var - false - true - - - varImpl - false - true - - - windowState - false - true - - - - icon-back - com.liferay.taglib.portletext.IconBackTag - JSP - - - icon-close - com.liferay.taglib.portletext.IconCloseTag - JSP - - - icon-configuration - com.liferay.taglib.portletext.IconConfigurationTag - JSP - - - icon-edit - com.liferay.taglib.portletext.IconEditTag - JSP - - - icon-edit-defaults - com.liferay.taglib.portletext.IconEditDefaultsTag - JSP - - - icon-edit-guest - com.liferay.taglib.portletext.IconEditGuestTag - JSP - - - icon-export-import - com.liferay.taglib.portletext.IconExportImportTag - JSP - - - icon-help - com.liferay.taglib.portletext.IconHelpTag - JSP - - - icon-maximize - com.liferay.taglib.portletext.IconMaximizeTag - JSP - - - icon-minimize - com.liferay.taglib.portletext.IconMinimizeTag - JSP - - - icon-options - com.liferay.taglib.portletext.IconOptionsTag - JSP - - - icon-portlet - com.liferay.taglib.portletext.IconPortletTag - JSP - - ariaRole - false - true - - - id - false - true - - - label - false - true - - - portlet - false - true - - - url - false - true - - - - icon-portlet-css - com.liferay.taglib.portletext.IconPortletCssTag - JSP - - - icon-print - com.liferay.taglib.portletext.IconPrintTag - JSP - - - icon-refresh - com.liferay.taglib.portletext.IconRefreshTag - JSP - - - param - com.liferay.taglib.util.ParamTag - empty - - name - true - true - - - value - true - true - - - - preview - com.liferay.taglib.portletext.PreviewTag - JSP - - portletName - true - true - - - queryString - false - true - - - showBorders - false - true - - - width - false - true - - - - - - - renderURL - com.liferay.taglib.portlet.RenderURLTag - com.liferay.taglib.portlet.RenderURLTei - JSP - - allowEmptyParam - false - true - - - anchor - false - true - - - copyCurrentRenderParameters - false - true - - - doAsGroupId - false - true - - - doAsUserId - false - true - - - encrypt - false - true - - - escapeXml - false - true - - - plid - false - true - - - portletConfiguration - false - true - - - portletMode - false - true - - - portletName - false - true - - - refererGroupId - false - true - - - refererPlid - false - true - - - secure - false - true - - - var - false - true - - - varImpl - false - true - - - windowState - false - true - - - - renderURLParams - com.liferay.taglib.portlet.RenderURLParamsTag - JSP - - varImpl - true - true - - - - - - - resourceURL - com.liferay.taglib.portlet.ResourceURLTag - com.liferay.taglib.portlet.ResourceURLTei - JSP - - anchor - false - true - - - copyCurrentRenderParameters - false - true - - - doAsGroupId - false - true - - - doAsUserId - false - true - - - encrypt - false - true - - - escapeXml - false - true - - - id - false - true - - - plid - false - true - - - portletConfiguration - false - true - - - portletMode - false - true - - - portletName - false - true - - - refererGroupId - false - true - - - refererPlid - false - true - - - secure - false - true - - - var - false - true - - - varImpl - false - true - - - windowState - false - true - - - - runtime - com.liferay.taglib.portletext.RuntimeTag - JSP - - defaultPreferences - false - true - - - portletName - true - true - - - queryString - false - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet.tld deleted file mode 100644 index a7cd2fdf..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet.tld +++ /dev/null @@ -1,158 +0,0 @@ - - - - - 1.0 - 1.1 - portlet - http://java.sun.com/portlet - - actionURL - com.liferay.taglib.portlet.ActionURLTag - com.liferay.taglib.portlet.ActionURLTei - JSP - - copyCurrentRenderParameters - false - true - - - escapeXml - false - true - - - name - false - true - - - portletMode - false - true - - - secure - false - true - - - var - false - true - - - windowState - false - true - - - - defineObjects - com.liferay.taglib.portlet.DefineObjectsTag - com.liferay.taglib.portlet.DefineObjectsTei - empty - - - namespace - com.liferay.taglib.portlet.NamespaceTag - empty - - - param - com.liferay.taglib.util.ParamTag - empty - - name - true - true - - - value - true - true - - - - property - com.liferay.taglib.util.PropertyTag - empty - - name - true - true - - - value - true - true - - - - renderURL - com.liferay.taglib.portlet.RenderURLTag - com.liferay.taglib.portlet.RenderURLTei - JSP - - copyCurrentRenderParameters - false - true - - - escapeXml - false - true - - - portletMode - false - true - - - secure - false - true - - - var - false - true - - - windowState - false - true - - - - resourceURL - com.liferay.taglib.portlet.ResourceURLTag - com.liferay.taglib.portlet.ResourceURLTei - JSP - - cacheability - false - true - - - escapeXml - false - true - - - id - false - true - - - secure - false - true - - - var - false - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-security.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-security.tld deleted file mode 100644 index f8e6f6dd..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-security.tld +++ /dev/null @@ -1,106 +0,0 @@ - - - - - 1.0 - 1.1 - liferay-security - http://liferay.com/tld/security - - doAsURL - com.liferay.taglib.security.DoAsURLTag - com.liferay.taglib.security.DoAsURLTei - JSP - - doAsUserId - false - true - - - var - false - true - - - - encrypt - com.liferay.taglib.security.EncryptTag - JSP - - className - false - true - - - protocol - true - true - - - style - false - true - - - target - false - true - - - unencryptedParams - false - true - - - url - true - true - - - - permissionsURL - com.liferay.taglib.security.PermissionsURLTag - com.liferay.taglib.security.PermissionsURLTei - JSP - - modelResource - true - true - - - modelResourceDescription - true - true - - - redirect - false - true - - - resourceGroupId - false - true - - - resourcePrimKey - true - true - - - roleTypes - false - true - - - var - false - true - - - windowState - false - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-theme.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-theme.tld deleted file mode 100644 index 90ac81db..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-theme.tld +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 1.0 - 1.1 - theme - http://liferay.com/tld/theme - - defineObjects - com.liferay.taglib.theme.DefineObjectsTag - com.liferay.taglib.theme.DefineObjectsTei - empty - - - include - com.liferay.taglib.theme.IncludeTag - JSP - - page - true - true - - - - layout-icon - com.liferay.taglib.theme.LayoutIconTag - JSP - - layout - true - true - - - - meta-tags - com.liferay.taglib.theme.MetaTagsTag - JSP - - - param - com.liferay.taglib.util.ParamTag - JSP - - name - true - true - - - value - true - true - - - - wrap-portlet - com.liferay.taglib.theme.WrapPortletTag - JSP - - page - true - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-ui.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-ui.tld deleted file mode 100644 index a9a746a8..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-ui.tld +++ /dev/null @@ -1,4691 +0,0 @@ - - - - Provides the Liferay UI component tags, prefixed with liferay-ui:]]>. - 1.0 - liferay-ui - http://liferay.com/tld/ui - - app-view-display-style - com.liferay.taglib.ui.AppViewDisplayStyleTag - empty - - displayStyle - true - true - - - displayStyles - true - true - - - requestParams - true - true - - - - Creates a component for displaying entry items such as images, documents, folders, etc. in a concise but informative manner. Items are displayed in a similar fashion to entries in the file system of most operating systems. - app-view-entry - com.liferay.taglib.ui.AppViewEntryTag - empty - - The path to an action JSP page. - actionJsp - false - true - - - The Java class name for any categories added to the entry. - assetCategoryClassName - false - true - - - The Java class primary key for any categories added to the entry. This is a Java long]]>. - assetCategoryClassPK - false - true - - - The Java class name for any tags added to the entry. - assetTagClassName - false - true - - - The Java class primary key for any tags added to the entry. This is a Java long]]>. - assetTagClassPK - false - true - - - The name of the entry's author. - author - false - true - - - The date the entry was created. - createDate - false - true - - - A CSS class for styling this component. - cssClass - false - true - - - Miscellaneous data to be stored via a map. This data is not shared with the browser. The map holds key value pairs of type <String, Object>]]>. - data - false - true - java.util.Map - - - A description of the entry. - description - false - true - - - A date to display the entry. - displayDate - false - true - - - A display style for the component. Options are list]]>, icon]]>, and descriptive]]>. - displayStyle - true - true - - - A date for the entry to expire and be automatically deleted. - expirationDate - false - true - - - Whether the entry is a folder. The default is false]]>. - folder - false - true - boolean - - - The group ID of the entry. This is a Java long]]>. - groupId - false - true - - - The version number of the most recently published copy of the entry. - latestApprovedVersion - false - true - - - The author of the most recently published version of the entry. - latestApprovedVersionAuthor - false - true - - - Whether the entry is locked. The default value is false]]>. - locked - false - true - boolean - - - The date of the most recent modification to the entry. - modifiedDate - false - true - - - The date the entry was reviewed. - reviewDate - false - true - - - A checkbox input ID to be used for the entry row checker. - rowCheckerId - false - true - - - A name for the entry row checker. - rowCheckerName - false - true - - - Whether to show a shortcut icon link to the entry. The default value is false]]>. - shortcut - false - true - boolean - - - Whether the entry is selectable. An actual checkbox is used when the display style is icon]]> or descriptive]]>. The default value is false]]>. - showCheckbox - true - true - boolean - - - Whether to show the link title. The default value is true]]>. - showLinkTitle - false - true - boolean - - - The current status of the entry, as represented by an integer. Options are -1: STATUS_ANY]]>, 0: STATUS_APPROVED]]>, 1: ACTION_PUBLISH]]>, 2: STATUS_DRAFT]]>, and 4: STATUS_DENIED]]>. The default value is -1]]>. - status - false - true - int - - - A CSS style to be applied to the div containing the thumbnail for the entry. - thumbnailDivStyle - false - true - - - The source URL for an entry thumbnail image. - thumbnailSrc - true - true - - - A CSS style to be applied to the thumbnail for the entry. - thumbnailStyle - false - true - - - A title for the entry. - title - true - true - - - The current version of the entry. - version - false - true - - - A URL to view the full entry. - url - false - true - - - - Creates a navigation list item component for navigating app view entries. - app-view-navigation-entry - com.liferay.taglib.ui.AppViewNavigationEntryTag - empty - - The path for an action JSP page. - actionJsp - false - true - - - A CSS class for styling this component. - cssClass - false - true - - - Data to be applied to the component link and stored via a map. This data is not shared with the browser. The map holds key value pairs of type <String, Object>]]>. - dataView - false - true - java.util.Map - - - A title for the component. - entryTitle - true - true - - - A CSS class for setting the icon of the component. - iconImage - false - true - - - iconSrc - false - true - - - Whether the entry is selected. - selected - false - true - boolean - - - A URL to view the entry. - viewURL - true - true - - - - Creates a toolbar for viewing items in app view. - app-view-toolbar - com.liferay.taglib.ui.AppViewToolbarTag - JSP - - Whether to include the option to choose a display style for component items. If the value is true]]>, a list of display style options is rendered. The default value is false]]>. - includeDisplayStyle - false - true - boolean - - - Whether to include an option to select all component items. The default value is false]]>. - includeSelectAll - false - true - boolean - - - The file path for a search JSP page. - searchJsp - false - true - - - - Creates a component for displaying search results of entries in app view. - app-view-search-entry - com.liferay.taglib.ui.AppViewSearchEntryTag - empty - - The file path for an action JSP page. - actionJsp - false - true - - - containerIcon - false - true - - - The name of the container that the entry is in, such as the name of a folder. - containerName - false - true - - - containerSrc - false - true - - - The type of container the entry is in, such as Folder]]>. - containerType - false - true - - - A CSS class for styling this component. - cssClass - false - true - - - A description of the entry. - description - true - true - - - A list of objects containing information such as content, user ID, and titles of the entry file attachments. - fileEntryTuples - false - true - - - Whether the entry is locked. The default value is false]]>. - locked - false - true - boolean - - - A list of objects containing information such as content, author, and status of entry messages. An example would be a comment made by one user on another user's blog post. - mbMessages - false - true - - - Query terms of the search. - queryTerms - true - true - - - A checkbox input ID to be used for the entry row checker. This is a Java long]]>. - rowCheckerId - false - true - - - A name to be used for the entry row checker. - rowCheckerName - false - true - - - Whether the entry is selectable via a checkbox. The default value is true]]>. - showCheckbox - false - true - boolean - - - The current status of the entry as represented by an integer. Options are -1: STATUS_ANY]]>, 0: STATUS_APPROVED]]>, 1: ACTION_PUBLISH]]>, 2: STATUS_DRAFT]]>, and 4: STATUS_DENIED]]>. - status - false - true - - - The URL for an entry thumbnail image. - thumbnailSrc - false - true - - - A title for the entry. - title - true - true - - - A URL used to view the full entry. - url - true - true - - - The current and past versions of the entry. - versions - false - true - - - - asset-categories-error - com.liferay.taglib.ui.AssetCategoriesErrorTag - JSP - - - asset-categories-navigation - com.liferay.taglib.ui.AssetCategoriesNavigationTag - JSP - - hidePortletWhenEmpty - false - true - - - vocabularyIds - false - true - - - - asset-categories-selector - com.liferay.taglib.ui.AssetCategoriesSelectorTag - JSP - - className - false - true - - - classPK - false - true - - - contentCallback - false - true - - - curCategoryIds - false - true - - - groupIds - false - true - - - hiddenInput - false - true - - - ignoreRequestValue - false - true - - - - asset-categories-summary - com.liferay.taglib.ui.AssetCategoriesSummaryTag - JSP - - className - true - true - - - classPK - true - true - - - message - false - true - - - portletURL - false - true - - - - asset-links - com.liferay.taglib.ui.AssetLinksTag - JSP - - assetEntryId - false - true - - - className - false - true - - - classPK - false - true - - - - Creates a liferay-ui:error]]> component to display tag-related error messages. - asset-tags-error - com.liferay.taglib.ui.AssetTagsErrorTag - JSP - - - asset-tags-navigation - com.liferay.taglib.ui.AssetTagsNavigationTag - JSP - - classNameId - false - true - - - displayStyle - false - true - - - hidePortletWhenEmpty - false - true - - - maxAssetTags - false - true - - - showAssetCount - false - true - - - showZeroAssetCount - false - true - - - - Creates a Liferay.AssetTagsSelector]]> component to create and select tags to add to an asset, such as a blog entry, bookmark, or wiki page. - asset-tags-selector - com.liferay.taglib.ui.AssetTagsSelectorTag - JSP - - Whether to automatically focus the tag input field. The default value is false]]>. - autoFocus - false - true - boolean - - - The Java class of the asset. - className - false - true - - - The Java class primary key of an asset to associate with the tags. This is a Java long]]>. - classPK - false - true - - - A function to get tag suggestions based on the asset's content. - contentCallback - false - true - - - The current selected tags. - curTags - false - true - - - The group IDs of the asset tags. - groupIds - false - true - - - The name of the hidden input for passing in the asset's current tags. - hiddenInput - false - true - - - An ID for the component instance. - id - false - true - - - ignoreRequestValue - false - true - - - - Creates a component to display all the tags associated with an asset, such as a blog entry, wiki page, or message boards message. - asset-tags-summary - com.liferay.taglib.ui.AssetTagsSummaryTag - JSP - - An array of the asset tag names. - assetTagNames - false - true - - - The Java class of the asset. - className - true - true - - - The Java class primary key of an asset. This is a Java long]]>. - classPK - true - true - - - A message to display before the tag labels. A standard example is tags]]>, which renders as Tags:]]>. - message - false - true - - - The URL of a portlet to display the tags. - portletURL - false - true - - - - breadcrumb - com.liferay.taglib.ui.BreadcrumbTag - JSP - - displayStyle - false - true - - - portletURL - false - true - - - selLayout - false - true - - - selLayoutParam - false - true - - - showCurrentGroup - false - true - - - showCurrentPortlet - false - true - - - showGuestGroup - false - true - - - showLayout - false - true - - - showParentGroups - false - true - - - showPortletBreadcrumb - false - true - - - - Creates a calendar with configurable events. - calendar - com.liferay.taglib.ui.CalendarTag - JSP - - A given set of integers, corresponding to a day of the chosen month, and to mark with a dot. - data - false - true - java.util.Set - - - A day of the month to highlight in the calendar. - day - false - true - int - - - A format for the header. - headerFormat - false - true - java.text.Format - - - A pattern for the calendar header. A possible value is MMM/dd/yyyy]]>. - headerPattern - false - true - - - A month of the year to display at the top of the calendar. - month - true - true - int - - - Whether to display up to six calendar weeks relative to the set day. If the set day of the month is in the latter part of the month, the current month's weeks will be displayed and up to two weeks of the next month will be displayed. The default value is false]]>. - showAllPotentialWeeks - false - true - boolean - - - A year to display at the top of the calendar. - year - true - true - int - - - - Creates an image CAPTCHA with a corresponding verification input. - captcha - com.liferay.taglib.ui.CaptchaTag - JSP - - The source URL for the image CAPTCHA. - url - true - true - - - - categorization-filter - com.liferay.taglib.ui.CategorizationFilterTag - JSP - - assetType - false - true - - - portletURL - false - true - - - - custom-attribute - com.liferay.taglib.ui.CustomAttributeTag - JSP - - className - true - true - - - classPK - true - true - - - editable - false - true - - - label - false - true - - - name - true - true - - - - custom-attribute-list - com.liferay.taglib.ui.CustomAttributeListTag - JSP - - className - true - true - - - classPK - true - true - - - editable - false - true - - - ignoreAttributeNames - false - true - - - label - false - true - - - - custom-attributes-available - com.liferay.taglib.ui.CustomAttributesAvailableTag - JSP - - className - true - true - - - classPK - false - true - - - companyId - false - true - - - ignoreAttributeNames - false - true - - - editable - false - true - - - - ddm-template-selector - com.liferay.taglib.ui.DDMTemplateSelectorTag - JSP - - classNameId - true - true - - - displayStyle - true - true - - - displayStyleGroupId - true - true - - - displayStyles - false - true - - - icon - false - true - - - label - false - true - - - refreshURL - false - true - - - showEmptyOption - false - true - - - - diff - com.liferay.taglib.ui.DiffTag - JSP - - diffResults - true - true - - - sourceName - true - true - - - targetName - true - true - - - - diff-html - com.liferay.taglib.ui.DiffHtmlTag - JSP - - diffHtmlResults - true - true - - - - discussion - com.liferay.taglib.ui.DiscussionTag - JSP - - assetEntryVisible - false - true - - - className - true - true - - - classPK - true - true - - - formAction - true - true - - - formName - false - true - - - hideControls - false - true - - - permissionClassName - false - true - - - permissionClassPK - false - true - - - ratingsEnabled - false - true - - - redirect - false - true - - - Deprecated as of 6.2.0, with no direct replacement - subject - false - true - - - userId - true - true - - - - Creates an error message to display to the user. - error - com.liferay.taglib.ui.ErrorTag - com.liferay.taglib.ui.ErrorTei - JSP - - A class for the exception. - exception - false - true - - - The name of a field on which to focus the error message. - focusField - false - true - - - A key to place in the SessionErrors]]> object to trigger the error message. - key - false - true - - - Explicit message text or a language key name from which to derive text for the message. - message - false - true - - - rowBreak - false - true - - - Whether to translate the message into the user's language. The default value is true]]>. - translateMessage - false - true - boolean - - - - error-marker - com.liferay.taglib.ui.ErrorMarkerTag - JSP - - key - false - true - - - value - false - true - - - - Creates a flag icon that lets users report inappropriate content. - flags - com.liferay.taglib.ui.FlagsTag - JSP - - The flagged asset's Java class name. - className - true - true - - - The flagged asset's entry ID. - classPK - true - true - - - The flagged asset's title. - contentTitle - true - true - - - Whether to show message text as a label next to the flag icon or as a tooltip. The default value is true]]>. - label - false - true - boolean - - - Text to display next to the flag icon. The default text is Flag]]>. - message - false - true - - - The user ID of the user who flagged the asset. - reportedUserId - true - true - - - - flash - com.liferay.taglib.ui.FlashTag - JSP - - align - false - true - - - allowFullScreen - false - true - - - allowScriptAccess - false - true - - - base - false - true - - - bgcolor - false - true - - - devicefont - false - true - - - flashvars - false - true - - - height - false - true - - - id - false - true - - - loop - false - true - - - menu - false - true - - - movie - true - true - - - play - false - true - - - quality - false - true - - - salign - false - true - - - scale - false - true - - - swliveconnect - false - true - - - version - false - true - - - width - false - true - - - wmode - false - true - - - - Creates a navigable form for multiple section forms. It's default navigation is a side navigation box with links to each section. But the navigation can be configured as a progressive step navigation positioned above the form or as vertically stacked accordion style sections that expand when clicked. - form-navigator - com.liferay.taglib.ui.FormNavigatorTag - JSP - - A URL for the form's cancel button. - backURL - false - true - - - The name of each category in the form. - categoryNames - true - true - - - The name of each section within a category. - categorySections - true - true - - - A type of navigation to be used. Options are steps]]> and panel]]>. The default display style is side navigation. - displayStyle - false - true - - - A name for the form. - formName - false - true - - - HTML to append to the navigator. Examples include alternate form buttons, form instructions, or information about the form. - htmlBottom - false - true - - - HTML to prepend to the navigator. - htmlTop - false - true - - - A path to the formSection.jsp]]> file's folder /path/to/jsp/folder/]]>. - jspPath - false - true - - - Whether to show the Submit]]> and Cancel]]> buttons. The default value is true]]>. - showButtons - false - true - boolean - - - - group-search - com.liferay.taglib.ui.GroupSearchTag - JSP - - groupParams - true - true - - - portletURL - true - true - - - rowChecker - false - true - - - - Creates a header that displays its text above a horizontal rule accompanied by a configurable back URL button. - header - com.liferay.taglib.ui.HeaderTag - JSP - - Text to display on mouse over of the back URL. The default value is Back]]>. - backLabel - false - true - - - A URL for navigating back to. - backURL - false - true - - - A CSS class for styling the header component. - cssClass - false - true - - - Whether to escape the header's XML tags. The default value is true]]>. - escapeXml - false - true - boolean - - - Whether to translate the header's title]]> into the localized language. The default value is true]]>. - localizeTitle - false - true - boolean - - - Whether to display the back URL. The default value is true]]>. - showBackURL - false - true - boolean - - - A title to display as the header text. - title - true - true - - - - Creates a fully configurable icon that provides access to current Liferay theme icons. - icon - com.liferay.taglib.ui.IconTag - JSP - - A value for the alt]]> attribute of the embedded img]]> tag. - alt - false - true - - - A role for assistive technologies to interpret for HTML elements that have been used for something other than their intended purpose. For example, the <p>]]> tag could be used for something other than a paragraph. - ariaRole - false - true - - - A CSS class for styling the component. - cssClass - false - true - - - Miscellaneous data to be stored via a map. This data is not shared with the browser. The map holds key value pairs of type <String, Object>]]>. - data - false - true - java.util.Map - - - An icon from a Bootstrap icon CSS Class. Note that any image for the image]]> attribute takes precedence. Icon CSS classes to specify for this attribute can be found at http://marcoceppi.github.io/bootstrap-glyphicons/]]>. - iconCssClass - false - true - - - An ID for the component instance. - id - false - true - - - An image for the icon, from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. This image takes precedence over any icon value set via the iconCssClass]]> attribute. - image - false - true - - - An icon to display on mouse over of the component. The icon image comes from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. - imageHover - false - true - - - Whether to display the message]]> attribute's value as the icon's label. - label - false - true - boolean - - - A language to associate with the icon, to assist search engines and web browsers in finding and rendering the icon appropriately. - lang - false - true - - - A CSS class for styling the icon's URL. - linkCssClass - false - true - - - Whether to translate the icon's message]]> into the user's language. - localizeMessage - false - true - boolean - - - Text to be displayed for the icon on mouse over. - message - false - true - - - An HTTP request method. Possible values are get]]> and post]]>. - method - false - true - - - A function to be called on a user clicking the icon. - onClick - false - true - - - The location of an image file to use in the icon. - src - false - true - - - The location of an image file to use on mouse over of the icon. This value takes precedence over the imageHover]]> attribute. This image takes precedence over icons set with the imageHover]]> attribute. - srcHover - false - true - - - A target window in which to open the URL. The default value is self]]>. Possible values are blank]]>, self]]>, parent]]>, top]]>, and a unique frame's name. - target - false - true - - - Whether to use a tooltip. The default value is true]]>. - toolTip - false - true - boolean - - - A URL to navigate to when the icon is clicked. - url - false - true - - - Whether to open the URL in a dialog window. The default value is false]]>. - useDialog - false - true - boolean - - - - Creates an icon to associate with deactivating an item. - icon-deactivate - com.liferay.taglib.ui.IconDeactivateTag - JSP - - Whether to display a message on the icon's label on mouse over of the icon. The default value is false]]>. - label - false - true - boolean - - - A URL navigated to when the icon is clicked. - url - true - true - - - - Creates a configurable icon to associate with deleting or removing an item. - icon-delete - com.liferay.taglib.ui.IconDeleteTag - JSP - - Text to use in place of the text from the default deletion confirmation message language key are-you-sure-you-want-to-delete-this]]>. If the trash]]> attribute is set to true]]>, no confirmation message is shown. - confirmation - false - true - - - A CSS class for styling the component. - cssClass - false - true - - - An ID for the component instance. - id - false - true - - - An image for the icon, from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. The image takes precedence over any default icon images. - image - false - true - - - Whether to display the message]]> attribute's value as the icon's label. The default value is false]]>. - label - false - true - boolean - - - Text to display on mouse over of the icon. - message - false - true - - - An HTTP request method to invoke. Possible values are get]]> and post]]>. - method - false - true - - - Whether to use the trash icon instead of the remove icon. The default value isfalse]]>. - trash - false - true - boolean - - - A URL navigated to when the icon is clicked. - url - true - true - - - - Creates a help icon that displays a custom message as a tooltip on mouse over of the help icon. - icon-help - com.liferay.taglib.ui.IconHelpTag - JSP - - Text to be displayed on mouse over of the icon. - message - true - true - - - - Creates a list of icons from a list of child components. - icon-list - com.liferay.taglib.ui.IconListTag - JSP - - Whether to render the icon list when there is only one child component. The default value is false]]>. - showWhenSingleIcon - false - true - boolean - - - - Creates an icon menu from a list of child components. - icon-menu - com.liferay.taglib.ui.IconMenuTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - A position from which to pop up the icon menu dialog in relation to the trigger. The default direction is left]]>. Possible values are up]]>, down]]>, left]]> or right]]>. - direction - false - true - - - Whether to disable the icon menu. - disabled - false - true - boolean - - - Whether to extend the icon menu trigger by wrapping it in a button. The default value is true]]>. - extended - false - true - boolean - - - The location of an image file to use in the icon. - icon - false - true - - - An ID for the component instance. - id - false - true - - - Whether to translate the message to the user's language. The default value is true]]>. - localizeMessage - false - true - boolean - - - The number of items to show in the icon menu before scrolling. The default value is 15. - maxDisplayItems - false - true - int - - - Text to display next to the icon menu trigger. The default value is actions]]>. - message - false - true - - - Whether to add the select]]> CSS class to the icon menu. If set to true]]>, the selected icon is added to the icon menu's trigger when the icon is selected. The default value is false]]>. - select - false - true - boolean - - - Whether to extend the icon menu by default. The default value is false]]>. - showExpanded - false - true - boolean - - - Whether to show an arrow, indicating a popup dialog, next to the icon menu's trigger icon. The default value is true]]>. - showArrow - false - true - boolean - - - Whether to show the icon menu when there is only one icon. The default value is false]]>. - showWhenSingleIcon - false - true - boolean - - - A CSS class for styling the trigger for the icon menu. The default value is btn btn-default]]>. - triggerCssClass - false - true - - - Whether the icon menu drop-down caret points to the direction set by the direction]]> attribute. - useIconCaret - false - true - boolean - - - - input-asset-links - com.liferay.taglib.ui.InputAssetLinksTag - JSP - - assetEntryId - false - true - - - className - false - true - - - classPK - false - true - - - - Creates a configurable input checkbox. - input-checkbox - com.liferay.taglib.ui.InputCheckBoxTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - Whether the checkbox is selected by default. - defaultValue - false - true - boolean - - - Whether the checkbox is disabled. - disabled - false - true - boolean - - - A name for the checkbox's form. - formName - false - true - - - An ID for the component instance. - id - false - true - - - A function to be called on a user clicking the checkbox. - onClick - false - true - - - A variable name for the component. - param - true - true - - - - Creates a date input field that displays a calendar for date selection. - input-date - com.liferay.taglib.ui.InputDateTag - JSP - - Whether the date field gets focus by default. The default value is false]]>. - autoFocus - false - true - boolean - - - A CSS class for styling the component. - cssClass - false - true - - - A variable name to refer to the day of the component. - dayParam - false - true - - - A day value to display in the input field. - dayValue - false - true - int - - - Whether to disable the namespace for the component. The default value is false]]>. - disableNamespace - false - true - boolean - - - Whether to disable the input field. The default value is false]]>. - disabled - false - true - boolean - - - A day to set as the first day of the week. The default value is Calendar.SUNDAY - 2]]>. - firstDayOfWeek - false - true - int - - - A name for the date input's form. - formName - false - true - - - A variable name to refer to the combined month and year of the component. - monthAndYearParam - false - true - - - A variable name to refer to the month of the component. - monthParam - false - true - - - The numerical value for a month to display in the input field. Integer values for the month start with 0]]>. - monthValue - false - true - int - - - A name for the date input. - name - false - true - - - Whether the component's values can be set to null. - nullable - false - true - - - A variable name to refer to the year of the component. - yearParam - false - true - - - A year value to display in the input field. - yearValue - false - true - int - - - - Creates an input field for editing rich text. - input-editor - com.liferay.taglib.ui.InputEditorTag - JSP - - A map of configuration parameters. The map holds key value pairs of type <String, String>]]>. - configParams - false - true - java.util.Map - - - The ID of a language for the input editor's text. - contentsLanguageId - false - true - - - A CSS class for styling the component. - cssClass - false - true - - - editorImpl - false - true - - - inlineEdit - false - true - - - inlineEditSaveURL - false - true - - - A map of configuration parameters. The map holds key value pairs of <String, String>]]>. - fileBrowserParams - false - true - java.util.Map - - - height - false - true - - - initMethod - false - true - - - A name for the input editor. The default value is editor]]>. - name - false - true - - - A function to be called when the input editor loses focus. - onBlurMethod - false - true - - - A function to be called on a change in the input editor. - onChangeMethod - false - true - - - A function to be called when the input editor gets focus. - onFocusMethod - false - true - - - Whether the field for the input editor is resizable. The default value is true]]>. - resizable - false - true - boolean - - - Whether to skip loading resources necessary for the CKEditor. The default value is false]]>. - skipEditorLoading - false - true - boolean - - - A toolbar for the input editor. The default value is liferay]]>. Possible values are bbcode]]>, creole]]>, editInPlace]]>, email]]>, liferay]]>, liferayArticle]]>, phone]]>, simple]]>, and tablet]]>. - toolbarSet - false - true - - - width - false - true - - - - input-field - com.liferay.taglib.ui.InputFieldTag - JSP - - autoFocus - false - true - - - autoSize - false - true - - - bean - false - true - - - cssClass - false - true - - - dateTogglerCheckboxLabel - false - true - - - defaultLanguageId - false - true - - - defaultValue - false - true - - - disabled - false - true - - - field - true - true - - - fieldParam - false - true - - - formName - false - true - - - format - false - true - - - id - false - true - - - ignoreRequestValue - false - true - - - languageId - false - true - - - model - true - true - - - placeholder - false - true - - - - input-localized - com.liferay.taglib.ui.InputLocalizedTag - JSP - - autoFocus - false - true - - - autoSize - false - true - - - availableLocales - false - true - - - cssClass - false - true - - - defaultLanguageId - false - true - - - disabled - false - true - - - displayWidth - false - true - - - formName - false - true - - - id - false - true - - - ignoreRequestValue - false - true - - - languageId - false - true - - - maxLength - false - true - - - name - true - true - - - type - false - true - - - xml - true - true - - true - - - Creates an input move boxes component comprised of two columns of key value pairs that can be rearranged. - input-move-boxes - com.liferay.taglib.ui.InputMoveBoxesTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - A name for the left box. - leftBoxName - true - true - - - A list of key value pairs for the left box. - leftList - true - true - java.util.List - - - A function to be called on a change in selection in the left list. - leftOnChange - false - true - - - Whether the left list can be reordered. The default value is false]]>. - leftReorder - false - true - boolean - - - A title to display at the top of the right box. - leftTitle - true - true - - - A name for the right box. - rightBoxName - true - true - - - A list of key value pairs for the right box. - rightList - true - true - java.util.List - - - A function to be called on a change in selection in the right list. - rightOnChange - false - true - - - Whether the right list can be reordered. The default value is false]]>. - rightReorder - false - true - boolean - - - A title to display at the top of the right box. - rightTitle - true - true - - - - input-permissions - com.liferay.taglib.ui.InputPermissionsTag - JSP - - formName - false - true - - - modelName - false - true - - - - input-permissions-params - com.liferay.taglib.ui.InputPermissionsParamsTag - JSP - - modelName - true - true - - - - input-repeat - com.liferay.taglib.ui.InputRepeatTag - JSP - - cssClass - false - true - - - event - false - true - - - - input-resource - com.liferay.taglib.ui.InputResourceTag - JSP - - cssClass - false - true - - - id - false - true - - - title - false - true - - - url - true - true - - - - input-scheduler - com.liferay.taglib.ui.InputSchedulerTag - JSP - - - Creates a configurable search box. - input-search - com.liferay.taglib.ui.InputSearchTag - JSP - - Whether the search field gets focus by default. The default value is false]]>. - autoFocus - false - true - boolean - - - A text value for the search button's label. The default value is Search]]>. - buttonLabel - false - true - - - A CSS class for styling the component. - cssClass - false - true - - - An ID for the component instance. The default value is displayTerms.KEYWORDS]]>. - id - false - true - - - A name for the search box. The default value is displayTerms.KEYWORDS]]>. - name - false - true - - - Placeholder text for the search field. The default value is the value of the buttonLabel]]> attribute. - placeholder - false - true - - - Whether to show the search button. The default value is true]]>. - showButton - false - true - boolean - - - A title for the search box. - title - false - true - - - Whether to use a namespace with the search button. The default value is true]]>. - useNamespace - false - true - boolean - - - - Creates a select input component with yes or no options. - input-select - com.liferay.taglib.ui.InputSelectTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - Whether to select yes]]> as the input's default value. - defaultValue - false - true - boolean - - - Whether to disable input. - disabled - false - true - boolean - - - A name for the input select's form. - formName - false - true - - - A variable name for the component. - param - true - true - - - - Creates a configurable text area input field. - input-textarea - com.liferay.taglib.ui.InputTextAreaTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - Text to display in the text area. - defaultValue - false - true - - - Whether to disable input. The default value is false]]>. - disabled - false - true - boolean - - - A variable name for the component. - param - true - true - - - - Creates a time input field that provides a scrollable dropdown list of hours, in intervals designated by the minuteInterval]]> attribute. - input-time - com.liferay.taglib.ui.InputTimeTag - JSP - - The name of the AM/PM parameter for the time input. An acceptable value is ampm]]>. - amPmParam - true - true - - - A time to AM or PM. Acceptable values are 0]]> for AM and 1]]> for PM. The default value is 0]]>. - amPmValue - false - true - int - - - A CSS class for styling the time input. - cssClass - false - true - - - A date parameter for the time input. An acceptable value is date]]>. - dateParam - false - true - - - A date to associate with the time displayed. - dateValue - false - true - java.util.Date - - - Whether the input field is disabled. - disabled - false - true - boolean - - - The name of the hour parameter for the component. An acceptable value is hour]]>. - hourParam - true - true - - - An hour value for the time displayed. The default value is 12]]>. - hourValue - false - true - int - - - A minute interval displayed in the input. The default value is 30]]>. - minuteInterval - false - true - int - - - The name of the minute parameter for the component. An acceptable value is minute]]>. - minuteParam - true - true - - - A minute value for the time displayed. The default value is 00]]>. - minuteValue - false - true - int - - - A name for the time input. - name - false - true - - - - Creates a configurable timezone drop-down menu. - input-time-zone - com.liferay.taglib.ui.InputTimeZoneTag - JSP - - Whether the field gets focus by default. - autoFocus - false - true - boolean - - - A CSS class for styling the component. - cssClass - false - true - - - Whether to consider daylight savings for the times. The default value is true]]>. - daylight - false - true - boolean - - - Whether the field is disabled. - disabled - false - true - boolean - - - A style number corresponding to the time zone. A value of 0]]> displays the time zone's abbreviated name and a value of 1]]> displays its full name, e.g. "Pacific Standard Time." The default value is 0]]>. - displayStyle - false - true - int - - - A name for the component. - name - true - true - - - Whether the times can be null. - nullable - false - true - boolean - - - The ID of a time zone to associate with the component. For example, setting the value to PST]]> associates the component with the Pacific Standard Time zone. - value - false - true - - - - journal-article - com.liferay.taglib.ui.JournalArticleTag - JSP - - articleId - false - true - - - articlePage - false - true - - - articleResourcePrimKey - false - true - - - groupId - false - true - - - languageId - false - true - - - showAvailableLocales - false - true - - - showTitle - false - true - - - templateId - false - true - - - xmlRequest - false - true - - - - journal-content-search - com.liferay.taglib.ui.JournalContentSearchTag - JSP - - showListed - false - true - - - targetPortletId - false - true - - - type - false - true - - - - language - com.liferay.taglib.ui.LanguageTag - JSP - - displayCurrentLocale - false - true - - - displayStyle - false - true - - - formAction - false - true - - - formName - false - true - - - languageId - false - true - - - languageIds - false - true - - - name - false - true - - - - logo-selector - com.liferay.taglib.ui.LogoSelectorTag - JSP - - currentLogoURL - false - true - - - defaultLogoURL - false - true - - - editLogoURL - false - true - - - imageId - false - true - - - logoDisplaySelector - false - true - - - showBackground - false - true - - - - membership-policy-error - com.liferay.taglib.ui.MembershipPolicyErrorTag - JSP - - - Creates a message to display to the user. - message - com.liferay.taglib.ui.MessageTag - JSP - - Arguments for the language key, if the language key is configured to recieve arguments. - arguments - false - true - - - The name of a language key from which to derive the message to be displayed. - key - true - true - - - Whether to translate the language key value into the user's language. The default value is true]]>. - localizeKey - false - true - boolean - - - Whether to translate the arguments into the user's language. The default value is true]]>. - translateArguments - false - true - boolean - - - unicode - false - true - boolean - - - - my-sites - com.liferay.taglib.ui.MySitesTag - JSP - - classNames - false - true - - - cssClass - false - true - - - includeControlPanel - false - true - - - max - false - true - - - - navigation - com.liferay.taglib.ui.NavigationTag - JSP - - bulletStyle - false - true - - - displayStyle - false - true - - - headerType - false - true - - - includedLayouts - false - true - - - nestedChildren - false - true - - - preview - false - true - - - rootLayoutLevel - false - true - - - rootLayoutType - false - true - - - - Creates a page iterator for paginating through lists of items. - page-iterator - com.liferay.taglib.ui.PageIteratorTag - JSP - - Which page of items to display (e.g., first, second, third, etc.). - cur - true - true - int - - - A variable name to refer to the cur]]> value of the component. - curParam - true - true - - - The number of items to display per page. - delta - false - true - int - - - Whether the user can choose the number of items displayed per page. The default value is false]]>. - deltaConfigurable - false - true - boolean - - - A variable name to refer to the delta value of the component. - deltaParam - false - true - - - A name for the form. - formName - false - true - - - An ID for the component instance. - id - false - true - - - JavaScript to be called when the first]]>, previous]]>, next]]>, or last]]> links are clicked if the URL property is not set. - jsCall - false - true - - - A maximum number of pages to iterate through. - maxPages - false - true - int - - - A target for the first]]>, previous]]>, next]]>, and last]]> link buttons. - target - false - true - - - The total number of items in the iterator. - total - true - true - int - - - A type of iterator to display. Options are approximate]]>, article]]>, more]]>, and regular]]>. - type - false - true - - - A base URL for the iterator. Parameters are added to and removed from this URL as the user navigates through pages. - url - false - true - - - - Creates a collapsible panel for housing content. - panel - com.liferay.taglib.ui.PanelTag - JSP - - Whether the panel can be collapsed. The default value is true]]>. - collapsible - false - true - boolean - - - A CSS class for styling the component. - cssClass - false - true - - - A default state for the component. Possible values are open]]> and any string other than open. Any string other than open]]> collapses the panel. The default value is open]]>. - defaultState - false - true - - - Whether the panel is extended. The default value is false]]>. - extended - false - true - boolean - - - Text to display as a help tool tip on mouse over of the panel's help icon. - helpMessage - false - true - - - An icon to display next to the panel's title. The icon can be specified using the name of one of the Bootstrap icon CSS classes found at http://marcoceppi.github.io/bootstrap-glyphicons/]]>. - iconCssClass - false - true - - - An ID for the component instance. - id - false - true - - - The ID of the component that contains the panel. If a liferay-ui:panel-container]]> is used as the container for the panel, its ID is used as the value for the parentID]]>. - parentId - false - true - - - Whether to remember the component's state and persist it to the database. The default value is false]]>. - persistState - false - true - boolean - - - A state for the component. Possible values are open]]> and any string other than open. Any string other than open]]> collapses the panel. - state - false - true - - - A title to display at the top of the panel. - title - true - true - - - - Creates a collapsible container to house liferay-ui:panel]]> components. - panel-container - com.liferay.taglib.ui.PanelContainerTag - JSP - - Whether only one panel can be shown at a time. As one panel is opened, the others close, creating an accordian effect. The default value is false]]>. - accordion - false - true - boolean - - - A CSS class for styling the component. - cssClass - false - true - - - Whether to extend the interface with additional styling. The default value is false]]>. - extended - false - true - boolean - - - An ID for the component instance. - id - false - true - - - Whether to remember the component's state and persist it to the database. The default value is false]]>. - persistState - false - true - boolean - - - - param - com.liferay.taglib.util.ParamTag - JSP - - name - true - true - - - value - true - true - - - - Renders a PNG image with the source given for the image]]> attribute. - png-image - com.liferay.taglib.ui.PngImageTag - JSP - - The height of the image in pixels. A possible value would be 16]]>. px]]> is then appended to the end of the value. - height - true - true - int - - - The location of a PNG image file to use. - image - true - true - - - The height of the image in pixels. A possible value would be 16]]>. px]]> is then appended to the end of the value. - width - true - true - int - - - - progress - com.liferay.taglib.ui.ProgressTag - JSP - - height - false - true - - - id - true - true - - - message - false - true - - - sessionKey - true - true - - - updatePeriod - false - true - - - - ratings - com.liferay.taglib.ui.RatingsTag - JSP - - className - true - true - - - classPK - true - true - - - numberOfStars - false - true - - - ratingsEntry - false - true - - - ratingsStats - false - true - - - type - false - true - - - url - false - true - - - - ratings-score - com.liferay.taglib.ui.RatingsScoreTag - JSP - - score - true - true - - - - restore-entry - com.liferay.taglib.ui.RestoreEntryTag - JSP - - duplicateEntryAction - false - true - - - overrideMessage - false - true - - - renameMessage - false - true - - - restoreEntryAction - false - true - - - - Creates a clickable link and/or icon to an RSS feed document. - rss - com.liferay.taglib.ui.RSSTag - JSP - - A default maximum number of items to display. The default value is 20]]>. - delta - false - true - int - - - A default style to display. - displayStyle - false - true - - - A default format for the RSS feed. Options are atom_1.0]]>, rss_1.0]]>, and rss_2.0]]>. - feedType - false - true - - - A message to display next to the RSS icon. - message - false - true - - - A name for the RSS feed. - name - false - true - - - A URL from which to retrieve feed information. - resourceURL - false - true - - - The URL for an RSS feed file. - url - false - true - - - - Creates a configuration component for users to define RSS settings, such as how many articles to display. - rss-settings - com.liferay.taglib.ui.RSSSettingsTag - JSP - - A default maximum number of items to display. The default value is 20]]>. - delta - false - true - int - - - A default style to display. - displayStyle - false - true - - - Available RSS display styles from which the user can choose. Options are abstract]]>, full-content]]>, and title]]>. - displayStyles - false - true - - - Whether users are able to subscribe. Default value is false]]>. - enabled - false - true - boolean - - - A default format for the RSS feed. Options are atom_1.0]]>, rss_1.0]]>, and rss_2.0]]>. - feedType - false - true - - - A name for the component. - name - false - true - - - Whether the RSS feed has a name. The default value is false]]>. - nameEnabled - false - true - boolean - - - - Creates a search form, with an additional select input to set the scope of the search. - search - com.liferay.taglib.ui.SearchTag - JSP - - - Creates a grid for displaying a list of objects and their properties. - search-container - com.liferay.taglib.ui.SearchContainerTag - com.liferay.taglib.ui.SearchContainerTei - JSP - - A variable for the search container's pagination. Different pagination variables ensure independent pagination when multiple search containers are on a JSP. - curParam - false - true - - - The number of items to show on each search container page. - delta - false - true - int - - - The delta]]> attribute as configurable by users. - deltaConfigurable - false - true - - - deltaParam - false - true - - - displayTerms - false - true - - - A message displayed when the search container is empty. - emptyResultsMessage - false - true - - - headerNames - false - true - - - hover - false - true - - - id - false - true - - - iteratorURL - false - true - - - orderByCol - false - true - - - orderByColParam - false - true - - - orderByComparator - false - true - - - An order type for the columns, either ascending or descending. Values are asc]]> or desc]]>. - orderByType - false - true - - - orderByTypeParam - false - true - - - Inserts a checkbox column in the search container. Value must be a RowChecker]]> object. - rowChecker - false - true - - - searchContainer - false - true - - - searchTerms - false - true - - - The total number of objects in the search container. - total - false - true - int - - - A variable name for the results of the total]]> attribute. The default is total]]>. - totalVar - false - true - - - A variable name for the SearchContainer]]> object. The default is searchContainer]]>. - var - false - true - - - - search-container-column-button - com.liferay.taglib.ui.SearchContainerColumnButtonTag - JSP - - align - false - true - - - colspan - false - true - - - cssClass - false - true - - - href - true - true - - - index - false - true - - - name - false - true - - - valign - false - true - - - - Creates a date column in a search container. - search-container-column-date - com.liferay.taglib.ui.SearchContainerColumnDateTag - JSP - - A horizontal alignment for the column contents. The default is left]]>. - align - false - true - - - The number of columns to span. The default is 1]]>. - colspan - false - true - int - - - A CSS class for styling the column. - cssClass - false - true - - - A URL for the items in the column. - href - false - true - - - index - false - true - - - A name for the column. - name - false - true - - - Whether to set the column as sortable. The default value is false]]>. - orderable - false - true - boolean - - - An object's property by which to sort the column. - orderableProperty - false - true - - - A property to request from the row object. - property - false - true - - - A vertical alignment for the column contents. The default is middle]]>. - valign - false - true - - - A value for the column. - value - false - true - - - - Creates a column in a search container with the contents of a JSP file. - search-container-column-jsp - com.liferay.taglib.ui.SearchContainerColumnJSPTag - JSP - - A horizontal alignment for the column contents. The default is left]]>. - align - false - true - - - The number of columns to span. The default is 1]]>. - colspan - false - true - int - - - A CSS class for styling the column. - cssClass - false - true - - - index - false - true - - - name - false - true - - - The JSP file's location. - path - true - true - - - valign - false - true - - - - Creates a column in a search container for the workflow status. - search-container-column-status - com.liferay.taglib.ui.SearchContainerColumnStatusTag - JSP - - A horizontal alignment for the column contents. The default is left]]>. - align - false - true - - - The number of columns to span. The default is 1]]>. - colspan - false - true - int - - - A CSS class for styling the column. - cssClass - false - true - - - A URL for the column's contents. - href - false - true - - - index - false - true - - - name - false - true - - - Whether to set the column as sortable. The default value is false]]>. - orderable - false - true - boolean - - - An object's property by which to sort the column. - orderableProperty - false - true - - - An object's property to use for the column. - property - false - true - - - A vertical alignment for the column contents. The default is middle]]>. - valign - false - true - - - A workflow status for the item. - status - false - true - - - statusByUserId - false - true - - - statusDate - false - true - - - - Creates a text column in a search container. - search-container-column-text - com.liferay.taglib.ui.SearchContainerColumnTextTag - com.liferay.taglib.ui.SearchContainerColumnTextTei - JSP - - A horizontal alignment for the column contents. - align - false - true - - - A string buffer variable for constructing a URL in a scriptlet. - buffer - false - true - - - The number of columns to span. The default is 1]]>. - colspan - false - true - int - - - A CSS class for styling the column. - cssClass - false - true - - - href - false - true - - - index - false - true - - - name - false - true - - - Whether to set the column as sortable. The default value is false]]>. - orderable - false - true - boolean - - - An object's property by which to sort the column. - orderableProperty - false - true - - - property - false - true - - - target - false - true - - - title - false - true - - - Whether to automatically translate values. The default value is false]]>. - translate - false - true - boolean - - - A vertical alignment for the column contents. The default is middle]]>. - valign - false - true - - - value - false - true - - - - The list of objects to display in the search container. - search-container-results - com.liferay.taglib.ui.SearchContainerResultsTag - com.liferay.taglib.ui.SearchContainerResultsTei - JSP - - A list of objects to display in the search container. - results - false - true - - - A variable to use for the results. - resultsVar - false - true - - - Deprecated as of 6.2.0, replaced by liferay-ui:search-container#total - total - false - true - - - Deprecated as of 6.2.0, replaced by liferay-ui:search-container#totalVar - totalVar - false - true - - - - Creates rows in the search container for each object returned by liferay-ui:search-container-results]]>. - search-container-row - com.liferay.taglib.ui.SearchContainerRowTag - com.liferay.taglib.ui.SearchContainerRowTei - JSP - - bold - false - true - - - The class name of the objects to display in rows. - className - true - true - - - The returned model instances as HTML escaped. - escapedModel - false - true - - - A variable name to use for the rows' index. - indexVar - false - true - - - A property to use as the primary key for the object type in the className]]> attribute. - keyProperty - false - true - - - A variable name to use for each object as the search container iterates through the objects returned by liferay-ui:search-container-results]]>. - modelVar - false - true - - - A model property to use as the row ID. - rowIdProperty - false - true - - - A variable name to use for the rows. - rowVar - false - true - - - servletContext - false - true - - - stringKey - false - true - - - - Creates parameters for rows in the search container. The liferay-ui:search-container-row]]> tag is required. - search-container-row-parameter - com.liferay.taglib.ui.SearchContainerRowParameterTag - JSP - - A name for the row parameter. - name - true - true - - - A value for the row parameter. - value - true - true - - - - search-form - com.liferay.taglib.ui.SearchFormTag - JSP - - page - true - true - - - searchContainer - false - true - - - servletContext - false - true - - - showAddButton - false - true - - - - Creates a search results page iterator with an optional paginator. - search-iterator - com.liferay.taglib.ui.SearchIteratorTag - JSP - - Whether to add a liferay-ui:search-paginator]]> to the search container. The default value is true]]>. - paginate - false - true - boolean - - - All configurable properties of the search container, such as cur]]> and curParam]]>. These properties are set with searchContainer.getCur()]]> and searchContainer.getCurParam()]]> respectively. - searchContainer - false - true - - - A type of iterator to display. Options are approximate]]>, article]]>, more]]>, and regular]]>. - type - false - true - - - - Creates a page iterator to paginate through search results - search-paginator - com.liferay.taglib.ui.SearchPaginatorTag - JSP - - An ID for the component instance. - id - false - true - - - All configurable porperties of the search container, such as cur]]> and curParam]]>. These properties are set with searchContainer.getCur()]]> and searchContainer.getCurParam()]]> respectively. - searchContainer - true - true - - - A type of iterator to display. Options are approximate]]>, article]]>, more]]>, and regular]]>. - type - false - true - - - - search-speed - com.liferay.taglib.ui.SearchSpeedTag - JSP - - hits - true - true - - - searchContainer - true - true - - - - Creates a search instance that can be toggled between basic and advanced search. - search-toggle - com.liferay.taglib.ui.SearchToggleTag - JSP - - Whether the search input field is automatically focused. The default value is false]]>. - autoFocus - false - true - boolean - - - A label for the search button such as Search]]> or Go]]>. - buttonLabel - false - true - - - Terms to be used and displayed through the search instance. Term examples include keywords]]>, advancedSearch]]>, and description]]>. - displayTerms - true - true - - - The component instance's ID. - id - true - true - - - width - false - true - - - - section - com.liferay.taglib.ui.SectionTag - com.liferay.taglib.ui.SectionTei - JSP - - - sites-directory - com.liferay.taglib.ui.SitesDirectoryTag - JSP - - displayStyle - false - true - - - sites - false - true - - - - social-activities - com.liferay.taglib.ui.SocialActivitiesTag - JSP - - activities - false - true - - - className - false - true - - - classPK - false - true - - - displayRSSFeed - false - true - - - feedDelta - false - true - - - feedDisplayStyle - false - true - - - feedEnabled - false - true - - - feedLink - false - true - - - feedLinkMessage - false - true - - - feedTitle - false - true - - - feedType - false - true - - - - social-bookmark - com.liferay.taglib.ui.SocialBookmarkTag - JSP - - contentId - false - true - - - target - false - true - - - title - true - true - - - type - true - true - - - url - true - true - - - - social-bookmarks - com.liferay.taglib.ui.SocialBookmarksTag - JSP - - contentId - false - true - - - displayStyle - false - true - - - target - false - true - - - title - true - true - - - types - false - true - - - url - true - true - - - - staging - com.liferay.taglib.ui.StagingTag - JSP - - cssClass - false - true - - - extended - false - true - - - groupId - false - true - - - icon - false - true - - - layoutSetBranchId - false - true - - - message - false - true - - - onlyActions - false - true - - - privateLayout - false - true - - - selPlid - false - true - - - showManageBranches - false - true - - - - Creates a success message to display to the user. - success - com.liferay.taglib.ui.SuccessTag - empty - - A key to be placed in the SessionMessages]]> object to trigger the success message. - key - true - true - - - Explicit message text or the name of a language key from which to derive the message text. - message - true - true - - - Whether to translate the success message into the user's language. The default value is true]]>. - translateMessage - false - true - boolean - - - - table-iterator - com.liferay.taglib.ui.TableIteratorTag - com.liferay.taglib.ui.TableIteratorTei - JSP - - bodyPage - false - true - - - list - true - true - - - listType - true - true - - - rowBreak - false - true - - - rowLength - true - true - - - rowPadding - false - true - - - rowValign - false - true - - - width - false - true - - - - Creates a tabbed UI of section dividers that each house their own content. - tabs - com.liferay.taglib.ui.TabsTag - JSP - - - A label for the back URL. - backLabel - false - true - - - A URL for navigating back to. - backURL - false - true - - - A name for the tab's form. - formName - false - true - - - The names of the tabs. Each name must be separated by a comma with no spaces. - names - true - true - - - A function to be called on a user clicking any of the tabs. - onClick - false - true - - - A variable for the component. - param - false - true - - - A URL to refer to the portlet that contains the component. - portletURL - false - true - - - Whether the page refreshes when a tab is clicked. - refresh - false - true - boolean - - - Tab values that must follow the same order as the names]]> attribute. Each value must be separated by a comma with no spaces. - tabsValues - false - true - - - A design type for the tabs. Possible values are tabs]]> and pills]]>. - type - false - true - - - A URL to which all the tabs are linked when clicked. You can also set each tab's URL individually using url[number]]]> attribute. - url - false - true - - - url0 - false - true - - - A URL to which the second tab is linked when clicked. - url1 - false - true - - - A URL to which the third tab is linked when clicked - url2 - false - true - - - A URL to which the fourth tab is linked when clicked - url3 - false - true - - - A URL to which the fifth tab is linked when clicked - url4 - false - true - - - A URL to which the sixth tab is linked when clicked - url5 - false - true - - - A URL to which the seventh tab is linked when clicked - url6 - false - true - - - A URL to which the eighth tab is linked when clicked - url7 - false - true - - - A URL to which the ninth tab is linked when clicked - url8 - false - true - - - A URL to which the tenth tab is linked when clicked - url9 - false - true - - - An active tab from the value given in the attribute tabsValues]]>. No matter which tab a user selects, the tab given for this value always remains active. - value - false - true - - - - Creates a component that toggles the visibility of the content of the component matching the given id]]>. Default icons are used as the component's default mechanism for showing and hiding the content. - toggle - com.liferay.taglib.ui.ToggleTag - JSP - - Whether to initially show content by default. The default value is true]]>. - defaultShowContent - false - true - boolean - - - An icon to use as the mechanism for hiding the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used. - hideImage - false - true - - - Text to display as a link for hiding the content. It overrides the hideImage]]> attribute. Note that the showMessage]]> attribute must also be configured in order for the hide message to render. - hideMessage - false - true - - - The ID of a component instance whose content's visibility to toggle. - id - true - true - - - An icon to use as the mechanism for showing the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used. - showImage - false - true - - - A link to use as the mechanism for showing the content. The text value of this attribute is used as the link's text. The message takes precedence over showing an image, via the showImage]]> attribute. If you specify a showMessage]]> attribute, you should also specify the hideMessage]]> attribute; a null]]> is otherwise displayed for the text of the hide link. - showMessage - false - true - - - Text to be prefixed to the Toggle()]]> function that is called to toggle visibility of the content. If this is not configured, a random key is generated and prefixed to the Toggle()]]> function. For example, a value of run]]> would result in a function named runToggle()]]>. - stateVar - false - true - - - - toggle-area - com.liferay.taglib.ui.ToggleAreaTag - JSP - - align - false - true - - - defaultShowContent - false - true - - - hideImage - false - true - - - hideMessage - false - true - - - id - false - true - - - showImage - false - true - - - showMessage - false - true - - - stateVar - false - true - - - - toggle-value - com.liferay.taglib.ui.ToggleValueTag - JSP - - defaultValue - false - true - - - id - true - true - - - - Creates a component for users to permanently delete items such as images, articles, etc. from the recycle bin. - trash-empty - com.liferay.taglib.ui.TrashEmptyTag - empty - - A message to display to confirm that the user wants to remove the item(s) from the recycle bin. - confirmMessage - false - true - - - A message to be used for the empty-trash]]> button and link. - emptyMessage - false - true - - - A message to display to give users information about removing items from the recycle bin. - infoMessage - false - true - - - A URL for the empty-trash]]> button/link. - portletURL - true - true - - - The number of items to be removed from the recycle bin. - totalEntries - true - true - int - - - - Creates a message confirming items were moved to the recycle bin and presenting an option to restore them. - trash-undo - com.liferay.taglib.ui.TrashUndoTag - empty - - The URL of the undo link. - portletURL - true - true - - - A redirect URL. - redirect - false - true - - - - upload-progress - com.liferay.taglib.ui.UploadProgressTag - JSP - - height - false - true - - - id - true - true - - - message - false - true - - - redirect - false - true - - - updatePeriod - false - true - - - - user-display - com.liferay.taglib.ui.UserDisplayTag - com.liferay.taglib.ui.UserDisplayTei - JSP - - displayStyle - false - true - - - url - false - true - - - userId - true - true - - - userName - false - true - - - - user-search - com.liferay.taglib.ui.UserSearchTag - JSP - - portletURL - true - true - - - rowChecker - false - true - - - userParams - true - true - - - - webdav - com.liferay.taglib.ui.WebDAVTag - JSP - - path - true - true - - - - write - com.liferay.taglib.ui.WriteTag - JSP - - bean - true - true - - - property - true - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-util.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-util.tld deleted file mode 100644 index 72a4caf0..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-util.tld +++ /dev/null @@ -1,141 +0,0 @@ - - - - - 1.2 - 1.1 - liferay-util - http://liferay.com/tld/util - - body-bottom - com.liferay.taglib.util.BodyBottomTag - JSP - - outputKey - false - true - - - - body-top - com.liferay.taglib.util.BodyTopTag - JSP - - outputKey - false - true - - - - buffer - com.liferay.taglib.util.BufferTag - com.liferay.taglib.util.BufferTei - JSP - - var - true - true - - - - get-url - com.liferay.taglib.util.GetUrlTag - com.liferay.taglib.util.GetUrlTei - JSP - - expires - false - true - - - url - true - true - - - var - false - true - - - - html-bottom - com.liferay.taglib.util.HtmlBottomTag - JSP - - outputKey - false - true - - - position - false - true - - - - html-top - com.liferay.taglib.util.HtmlTopTag - JSP - - outputKey - false - true - - - position - false - true - - - - include - com.liferay.taglib.util.IncludeTag - JSP - - page - true - true - - - portletId - false - true - - - servletContext - false - true - - - strict - false - true - - - useCustomPage - false - true - - - - param - com.liferay.taglib.util.ParamTag - JSP - - name - true - true - - - value - true - true - - - - whitespace-remover - com.liferay.taglib.util.WhitespaceRemoverTag - JSP - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/web.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/web.xml deleted file mode 100644 index 6a84959d..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/web.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/css/main.css b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/css/main.css deleted file mode 100644 index e69de29b..00000000 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/init.jsp deleted file mode 100644 index 27561092..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/init.jsp +++ /dev/null @@ -1,65 +0,0 @@ - -<%@page import="java.text.Format"%> -<%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%> -<%@page import="com.liferay.portal.kernel.util.StringUtil"%> -<%@page import="java.util.Arrays"%> -<%@page import="javax.portlet.WindowState"%> -<%@page import="javax.portlet.PortletMode"%> - -<%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> - -<%@taglib uri="http://liferay.com/tld/aui" prefix="aui" %> -<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %> -<%@taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %> -<%@taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %> -<%@taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> -<%@taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %> - -<%@page import="com.liferay.portal.kernel.dao.search.ResultRow" %> -<%@page import="com.liferay.portal.kernel.template.TemplateHandler" %> -<%@page import="com.liferay.portal.kernel.template.TemplateHandlerRegistryUtil" %> -<%@page import="com.liferay.portal.kernel.util.GetterUtil" %> -<%@page import="com.liferay.portal.kernel.util.ParamUtil" %> -<%@page import="com.liferay.portal.kernel.util.StringPool" %> -<%@page import="com.liferay.portal.kernel.util.WebKeys" %> -<%@page import="com.liferay.portal.kernel.util.TextFormatter" %> -<%@page import="com.liferay.portal.model.Group" %> -<%@page import="com.liferay.portlet.portletdisplaytemplate.util.PortletDisplayTemplateUtil" %> -<%@page import="com.liferay.portal.theme.ThemeDisplay" %> -<%@page import="com.liferay.portal.util.PortalUtil" %> -<%@ page import="com.liferay.portlet.PortletPreferencesFactoryUtil" %> -<%@ page import="com.liferay.portal.kernel.util.Validator" %> -<%@ page import="com.liferay.portal.kernel.language.LanguageUtil" %> - -<%@ page import="javax.portlet.PortletPreferences" %> - - -<%@page import="java.text.SimpleDateFormat" %> -<%@page import="java.util.List" %> - - -<%@ page import="com.liferay.portal.kernel.dao.orm.QueryUtil" %> -<%@ page import="com.liferay.portal.kernel.dao.search.DisplayTerms" %> -<%@ page import="com.liferay.portal.kernel.dao.search.ResultRow" %> -<%@ page import="com.liferay.portal.kernel.dao.search.RowChecker" %> - -<%@ page import="com.liferay.portal.kernel.dao.search.SearchContainer" %> -<%@ page import="com.liferay.portal.kernel.util.OrderByComparator" %> -<%@ page import="com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil" %> - - - - - - - -<% -Format dateFormatDate = FastDateFormatFactoryUtil.getDate(locale, timeZone); -Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone); -WindowState windowState = renderRequest.getWindowState(); -PortletMode portletMode = renderRequest.getPortletMode(); - -String currentURL = PortalUtil.getCurrentURL(liferayPortletRequest); - - -%> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/view.jsp deleted file mode 100644 index 70bd9826..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/view.jsp +++ /dev/null @@ -1,10 +0,0 @@ -<%@include file="/html/autodestroy/init.jsp" %> - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/icon.png b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/icon.png deleted file mode 100644 index 807b862c..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/js/main.js b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/js/main.js deleted file mode 100644 index e69de29b..00000000 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/test/integration/arquillian.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/test/integration/arquillian.xml deleted file mode 100644 index 9413609b..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/test/integration/arquillian.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 8099 - tomcat - tomcat - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java index 7e55e4ce..bdb38e80 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java @@ -2,13 +2,10 @@ package it.mwg.sismica.bo.scheduler; import it.mwg.sismica.bo.util.SismicaUtil; -import java.util.Date; import java.util.List; 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; @@ -18,7 +15,6 @@ import com.liferay.portal.model.Company; import com.liferay.portal.model.Role; import com.liferay.portal.model.RoleConstants; import com.liferay.portal.model.User; -import com.liferay.portal.security.auth.PrincipalThreadLocal; import com.liferay.portal.security.permission.PermissionChecker; import com.liferay.portal.security.permission.PermissionCheckerFactoryUtil; import com.liferay.portal.security.permission.PermissionThreadLocal; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/PuliziaDatabase.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/PuliziaDatabase.java index ae4f1b4f..9654e360 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/PuliziaDatabase.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/PuliziaDatabase.java @@ -58,8 +58,8 @@ public class PuliziaDatabase { Date min = null; Date max = null; try { - min = sdf.parse("2020-09-25 18:43:49"); - max = sdf.parse("2020-09-25 18:44:15"); + min = sdf.parse("2020-09-25 18:40:00"); + max = sdf.parse("2020-09-25 18:50:00"); } catch (ParseException e) { esitoLog(esito, "Errore date: " + e.getMessage()); return esito; @@ -152,41 +152,40 @@ public class PuliziaDatabase { case "B1": Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPratica .getIntPraticaId()); - if (Validator.isNull(sorteggio)) { - jsonParameters = jsonSerializer.serialize(parameters); - try { + jsonParameters = jsonSerializer.serialize(parameters); + try { + if (Validator.isNull(sorteggio)) { AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLongAnnullamento, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, "MA", templateAnnullamentoId, dettPratica.getPrimaryKey(), DettPratica.class.getName(), StringPool.BLANK, jsonParameters, controlloPraticaId, serviceContext); - if (!conformi.contains(intPraticaId)) { - AvvisoLocalServiceUtil.addAvviso(intPratica.getIntPraticaId(), - descLongConformita, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, - StatoPraticaConstants.CONFORME, templateConformitaId, - dettPratica.getDettPraticaId(), DettPratica.class.getName(), - controlloPraticaId, serviceContext); - } - } catch (PortalException e) { - esitoLog(esito, - "Errore nell'invio per pratica " + intPratica.getNumeroProgetto() - + ", " + e.getMessage()); } - esitoLog(esito, "Pratica " - + intPratica.getNumeroProgetto() - + " (" - + intPraticaId - + "), procedura " - + intPratica.getTipoProcedura() - + ", invio annullamento" - + (conformi.contains(intPraticaId) ? ", conformità già inviata" - : " e conformità")); - annullatiB++; + if (!conformi.contains(intPraticaId)) { + AvvisoLocalServiceUtil.addAvviso(intPratica.getIntPraticaId(), + descLongConformita, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, + StatoPraticaConstants.CONFORME, templateConformitaId, + dettPratica.getDettPraticaId(), DettPratica.class.getName(), + controlloPraticaId, serviceContext); + } + } catch (PortalException e) { + esitoLog(esito, "Errore nell'invio per pratica " + intPratica.getNumeroProgetto() + + ", " + e.getMessage()); + } + String logStr = "Pratica " + intPratica.getNumeroProgetto() + " (" + intPraticaId + + "), procedura " + intPratica.getTipoProcedura(); + if (Validator.isNull(sorteggio)) { + logStr += ", invio annullamento"; + } else { + logStr += ", non invio annullamento perché sorteggiata"; + } + if (conformi.contains(intPraticaId)) { + logStr += ", conformità già inviata"; } else { - esitoLog(esito, "Pratica " + intPratica.getNumeroProgetto() + " (" + intPraticaId - + "), procedura " + intPratica.getTipoProcedura() - + ", non invio perché sorteggiata"); + logStr += ", invio conformità"; } + esitoLog(esito, logStr); + annullatiB++; break; case "C": Avviso valido = null; 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 12f74ca7..4fc2ecc5 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 @@ -5,6 +5,7 @@ */ package it.mwg.sismica.bo.util; +import flexjson.JSONSerializer; import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Avviso; @@ -105,7 +106,6 @@ import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServ import com.liferay.portlet.documentlibrary.model.DLFileEntry; import com.liferay.portlet.documentlibrary.model.DLFolder; import com.liferay.portlet.documentlibrary.service.DLAppServiceUtil; -import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil; public class SismicaUtil { private final static Log _log = LogFactoryUtil.getLog(SismicaUtil.class); @@ -117,7 +117,7 @@ public class SismicaUtil { public static Date[] getWeekInterval(int dow) { return getWeekInterval(dow, Calendar.getInstance().getTime()); } - + public static Date[] getWeekInterval(int dow, Date base) { Calendar reference = Calendar.getInstance(); reference.setTime(base); @@ -133,11 +133,6 @@ public class SismicaUtil { reference.add(Calendar.MILLISECOND, 1); reference.add(Calendar.DAY_OF_MONTH, -7); Date start = reference.getTime(); - // try { - // start = (new - // SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).parse("2020-05-18 00:00:00"); - // } catch (ParseException e) { - // } return new Date[] { start, end }; } @@ -220,28 +215,6 @@ public class SismicaUtil { return esito; } - public static List dimensioniDL(long companyId) { - List esito = new ArrayList<>(); - - int start = 0; - List fileEntries = null; - do { - try { - fileEntries = DLFileEntryLocalServiceUtil.getFileEntries(start, start + SLICE); - } catch (SystemException e) { - fileEntries = new ArrayList<>(); - } - for (DLFileEntry fileEntry : fileEntries) { - // fileEntry.getFileVersions(); - } - } while (fileEntries.size() > 0); - return esito; - } - - public static void sostituisciDL(ActionRequest actionRequest, ActionResponse actionResponse) { - - } - public static void inviaAvviso(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { List esito = new ArrayList<>(); @@ -269,53 +242,53 @@ public class SismicaUtil { for (ControlloPratica controllo : controlli) { controlloPraticaId = controllo.getControlloPraticaId(); } - + String tipoDocumento = null; String className = null; long classPk = 0; switch (tipoAvviso) { - case StatoPraticaConstants.COLLAUDO: - List collaudi = CollaudoLocalServiceUtil.findByIntPraticaId_Completata(intPraticaId, - true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, - OrderByComparatorFactoryUtil.create(CollaudoImpl.TABLE_NAME, "dtProtocollo", true)); - Collaudo collaudo = null; - for (Collaudo el : collaudi) { - if (Validator.isNotNull(el.getDtProtocollo())) { - collaudo = el; - } - } - if (Validator.isNull(collaudo)) { - SessionErrors.add(actionRequest, "invia-avviso-collaudo-non-trovato"); - return; - } - tipoDocumento = StatoPraticaConstants.VIDIMATA; - className = Collaudo.class.getName(); - classPk = collaudo.getPrimaryKey(); - controlloPraticaId = 0; - break; - case StatoPraticaConstants.FINE_LAVORI: - List fineLavori = FineLavoriLocalServiceUtil.findByIntPraticaId_Completata(intPraticaId, - true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, - OrderByComparatorFactoryUtil.create(FineLavoriImpl.TABLE_NAME, "dtProtocollo", true)); - FineLavori fineLavoro = null; - for (FineLavori el : fineLavori) { - if (Validator.isNotNull(el.getDtProtocollo())) { - fineLavoro = el; - } + case StatoPraticaConstants.COLLAUDO: + List collaudi = CollaudoLocalServiceUtil.findByIntPraticaId_Completata(intPraticaId, + true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, + OrderByComparatorFactoryUtil.create(CollaudoImpl.TABLE_NAME, "dtProtocollo", true)); + Collaudo collaudo = null; + for (Collaudo el : collaudi) { + if (Validator.isNotNull(el.getDtProtocollo())) { + collaudo = el; } - if (Validator.isNull(fineLavoro)) { - SessionErrors.add(actionRequest, "invia-avviso-finelavori-non-trovato"); - return; + } + if (Validator.isNull(collaudo)) { + SessionErrors.add(actionRequest, "invia-avviso-collaudo-non-trovato"); + return; + } + tipoDocumento = StatoPraticaConstants.VIDIMATA; + className = Collaudo.class.getName(); + classPk = collaudo.getPrimaryKey(); + controlloPraticaId = 0; + break; + case StatoPraticaConstants.FINE_LAVORI: + List fineLavori = FineLavoriLocalServiceUtil.findByIntPraticaId_Completata( + intPraticaId, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, + OrderByComparatorFactoryUtil.create(FineLavoriImpl.TABLE_NAME, "dtProtocollo", true)); + FineLavori fineLavoro = null; + for (FineLavori el : fineLavori) { + if (Validator.isNotNull(el.getDtProtocollo())) { + fineLavoro = el; } - tipoDocumento = StatoPraticaConstants.VIDIMATA; - className = FineLavori.class.getName(); - classPk = fineLavoro.getPrimaryKey(); - controlloPraticaId = 0; - break; - default: - SessionErrors.add(actionRequest, "operazione-non-supportata"); + } + if (Validator.isNull(fineLavoro)) { + SessionErrors.add(actionRequest, "invia-avviso-finelavori-non-trovato"); return; + } + tipoDocumento = StatoPraticaConstants.VIDIMATA; + className = FineLavori.class.getName(); + classPk = fineLavoro.getPrimaryKey(); + controlloPraticaId = 0; + break; + default: + SessionErrors.add(actionRequest, "operazione-non-supportata"); + return; } String templateName = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(tipoAvviso); @@ -761,18 +734,61 @@ public class SismicaUtil { return esito; } - public static List testInterno(long companyId) { + public static List testInterno(ServiceContext serviceContext) throws PortalException, + SystemException { List esito = new ArrayList<>(); + long intPraticaId = 124101; + String descLong = "Richiesta di integrazione"; + Date dtAvviso = new Date(); + String tipoAvviso = AvvisoUtil.TIPO_AVVISO_DIRETTO; + String tipoDocumento = StatoPraticaConstants.INTEGRAZIONE; + long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( + serviceContext.getCompanyId(), "conf.geniocivile.avviso.template.id.integrazione"); + long classPk = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId).getPrimaryKey(); + String className = DettPratica.class.getName(); + String userCodiceFiscalePrimaFirma = StringPool.BLANK; + Map parameters = new HashMap<>(); + parameters.put("testo_del_documento", + "Dall'esame del progetto per i lavori di riparazione o intervento locale (8.4.1 D.M. " + + "17/01/2018) dei danni causati dal sisma del 6 ottobre 2018 nella Chiesa Madre " + + "di Maria SS. Assunta,piazza Umberto n. 62,Comune di Adrano,è emerso che lo " + + "stesso è carente e pertanto necessita di integrazioni. Più precisamente,si è " + + "riscontrato che:\r\n1)\tManca la copia del documento di riconoscimento di " + + "tutti i soggetti interessati al progetto;\r\n2)\tManca la dichiarazione del " + + "Tecnico Progettista - Direttore dei Lavori (Legge 64/74 art. 17),scaricabile " + + "dal sito del Genio Civile – Catania;\r\n3)\tNella Tav. 2 “Rilievo – Piante – " + + "Localizzazione dei danni e delle criticità”: \r\nZONA D – Cartiglio " + + "nell’arco trionfale: non risulta verificato il permanere delle condizioni di " + + "stabilità del cartiglio in stucco e la solidità degli agganci con la " + + "muratura portante; \r\nZONA G – Aree esterna: non risulta verificata la " + + "stabilità di alcune porzioni del prospetto,in particolare di alcune sfere " + + "lapidee poste in cima a delle cuspidi,nonché degli elementi di laterizio " + + "costituenti la parte sommitale delle cornici della fabbrica incompleta del " + + "campanile di Sada;\r\n4)\t Nella Tav. A.1 “Relazione tecnica” non è definito " + + "il Livello di Conoscenza raggiunto (C.8.5.4 Circolare 21 gennaio 2019 n. 7); " + + "Per la modifica di aperture,accompagnata da opportuni rinforzi,deve " + + "dimostrarsi che l’insieme degli interventi non modifichino significativamente " + + "rigidezza,resistenza nei confronti delle azioni orizzontali e capacità di " + + "deformazione della struttura. Inoltre nel caso di rafforzamento locale " + + "finalizzato al miglioramento del funzionamento di elementi strutturali o alla " + + "limitazione di meccanismi di collasso,è richiesta la valutazione della " + + "variazione del livello locale di sicurezza (C8.4.1. Circolare 21 gennaio 2019 " + + "n. 7);\r\n5)\tNon esiste una Scheda Tecnica,con chiara identificazione " + + "prestazionale e di qualificazione (C11 Circolare 21 gennaio 2019 n. 7); della " + + "fibra in carbonio e dei materiali da utilizzare per i rinforzi;\r\n" + + "6)\tOccorre ritrasmettere,tramite il portale “PORTOS” tutti gli elaborati di " + + "progetto,avendo cura di apporre digitalmente,in ogni singolo allegato,la " + + "firma da parte dei tecnici interessati alla progettazione.\r\nIl Funzionario " + + "direttivo\t\t\t\t\t\tIl Dirigente Capo U.O.7\r\nArch. Pianif. Rosario Di " + + "Mauro\t\t\t\tArch. Giovanni Patti\r\nFirmata digitalmente\t\t\t\t\t\tFirmata " + + "digitalmente"); + JSONSerializer jsonSerializer = new JSONSerializer(); + String jsonParameters = jsonSerializer.serialize(parameters); + long controlloPraticaId = 0; - try { - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); - Date start = sdf.parse("2020-01-01 13:45:23.1111"); - Date end = sdf.parse("2020-12-31 10:45:23.1111"); - long diff = Math.round((end.getTime() - start.getTime()) / 86400000.0); - esito.add(diff + " giorni"); - } catch (Exception e) { - esito.add("Eccezione: " + e.getMessage()); - } + AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, + fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, jsonParameters, + controlloPraticaId, serviceContext); return esito; } @@ -1114,7 +1130,7 @@ public class SismicaUtil { private static long userRoleId; private static ResourceAction raFileEntry; private static ResourceAction raFolder; - + public static List generaDocumenti(long companyId) throws PortalException, SystemException { List esito = new ArrayList<>(); @@ -1269,7 +1285,7 @@ public class SismicaUtil { corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento + " " + documento.getPrimaryKey()); - + } if (Validator.isNotNull(pratica) && (documento.getFileEntryIdInvio() != 0)) { Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica @@ -1540,118 +1556,6 @@ public class SismicaUtil { return corretti; } - public static List generaDocumenti2(long companyId) throws SystemException, PortalException { - List esito = new ArrayList<>(); - - long templateConforme = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, AvvisoUtil - .getAllTipoDocumentoFileTemplateProps().get(StatoPraticaConstants.CONFORME)); - long templateVidimata = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, AvvisoUtil - .getAllTipoDocumentoFileTemplateProps().get(StatoPraticaConstants.VIDIMATA)); - - int inizio = 0; - int totali = 0; - int conformita = 0; - int vidimazioni = 0; - List pratiche = null; - do { - pratiche = IntPraticaLocalServiceUtil.getIntPraticas(inizio, inizio + SLICE); - for (IntPratica pratica : pratiche) { - List avvisi = getTipologieDocumentiAvvisi(pratica.getIntPraticaId()); - DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(pratica - .getIntPraticaId()); - ControlloPratica controllo = getLastControlloPratica(pratica.getIntPraticaId()); - - switch (pratica.getStatoPratica()) { - case StringPool.BLANK: - case StatoPraticaConstants.ANNULLATA: - break; - case StatoPraticaConstants.AUTORIZZATA: - break; - case StatoPraticaConstants.CONFORME: - if (Validator.isNotNull(dettPratica) && Validator.isNotNull(controllo)) { - switch (avvisi.size()) { - case 0: - _log.info("Pratica " + pratica.getNumeroProgetto() + ", invio vidimazione"); - inviaVidimazione(dettPratica, controllo, templateVidimata); - vidimazioni++; - // Fall through - case 1: - if (!avvisi.contains(StatoPraticaConstants.CONFORME)) { - _log.info("Pratica " + pratica.getNumeroProgetto() + ", invio conformità"); - inviaConformita(dettPratica, controllo, templateConforme); - conformita++; - } else { - _log.info("Pratica " + pratica.getNumeroProgetto() - + " contiene già la conformità"); - } - break; - } - } - break; - case StatoPraticaConstants.INTEGRAZIONE: - break; - case StatoPraticaConstants.NON_AUTORIZZATA: - break; - case StatoPraticaConstants.NON_CONFORME: - break; - case StatoPraticaConstants.SOTTOPOSTA_A_PARERE: - break; - case StatoPraticaConstants.VIDIMATA: - if (avvisi.size() == 0) { - _log.info("Pratica " + pratica.getNumeroProgetto() + ", invio Vidimazione"); - inviaVidimazione(dettPratica, controllo, templateVidimata); - vidimazioni++; - } - break; - default: - _log.info("Sconosciuto '" + pratica.getStatoPratica() + "'"); - return esito; - } - } - inizio += SLICE; - if (pratiche.size() > 0) { - totali += pratiche.size(); - _log.info(totali + " pratiche"); - } - } while (pratiche.size() > 0); - esito.add("Analizzate " + totali + " pratiche"); - if (vidimazioni > 0) { - esito.add("Inviate " + vidimazioni + " vidimazioni"); - } - if (conformita > 0) { - esito.add("Inviate " + conformita + " conformità"); - } - return esito; - } - - private static List getTipologieDocumentiAvvisi(long intPraticaId) throws SystemException { - List result = new ArrayList<>(); - List avvisi = AvvisoLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - for (Avviso avviso : avvisi) { - result.add(avviso.getTipoDocumento()); - } - return result; - } - - private static void inviaConformita(DettPratica dettPratica, ControlloPratica controllo, long template) - throws PortalException, SystemException { - ServiceContext serviceContext = getServiceContextbyDettPratica(dettPratica); - AvvisoLocalServiceUtil.addAvviso(dettPratica.getIntPraticaId(), "Avviso di Conformità", new Date(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.CONFORME, template, - dettPratica.getDettPraticaId(), DettPratica.class.getName(), - controllo.getControlloPraticaId(), serviceContext); - } - - private static void inviaVidimazione(DettPratica dettPratica, ControlloPratica controllo, long template) - throws PortalException, SystemException { - ServiceContext serviceContext = getServiceContextbyDettPratica(dettPratica); - AvvisoLocalServiceUtil.addAvviso(dettPratica.getIntPraticaId(), "Avviso di Vidimazione", new Date(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.VIDIMATA, template, - dettPratica.getDettPraticaId(), DettPratica.class.getName(), - controllo.getControlloPraticaId(), serviceContext); - } - private static ControlloPratica getLastControlloPratica(long intPraticaId) { ControlloPratica result = null; try { @@ -1676,12 +1580,4 @@ public class SismicaUtil { serviceContext.setUserId(intPratica.getUserId()); return serviceContext; } - - private static ServiceContext getServiceContextbyDettPratica(DettPratica dettPratica) { - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(dettPratica.getCompanyId()); - serviceContext.setScopeGroupId(dettPratica.getGroupId()); - serviceContext.setUserId(dettPratica.getUserId()); - return serviceContext; - } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java index 4e5399ff..04d350b1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java @@ -303,6 +303,7 @@ public class SorteggioPraticaUtil { IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(pratica.getIntPraticaId(), dtSorteggio, StatoPraticaConstants.SOTTOPOSTA_A_PARERE); + IntPraticaLocalServiceUtil.reIndexFascicolo(pratica, companyId); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java index 43d16e9b..48158485 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java @@ -44,119 +44,119 @@ import com.liferay.util.bridges.mvc.MVCPortlet; public class DocAggiuntivaPortlet extends MVCPortlet { - private Log _log = LogFactoryUtil.getLog(DocAggiuntivaPortlet.class); - - public void uploadDocAggiuntiva(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, - SystemException { - try { - UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); - ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); - long intPraticaId = ParamUtil.getLong(uploadRequest, "intPraticaId"); - long dettPraticaId = ParamUtil.getLong(uploadRequest, "dettPraticaId"); - String descrizione = ParamUtil.getString(uploadRequest, "descrizione"); - boolean feVisible = ParamUtil.getBoolean(uploadRequest, "feVisible"); - String sourceFileName = uploadRequest.getFileName("docFile"); - File file = uploadRequest.getFile("docFile"); - - if (Validator.isNotNull(sourceFileName) && file != null) { - // lunghezza fissata a 200 - if (sourceFileName.length() > 200) { - SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.length.valid"); - } - } else { - SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.is.request"); - } - - if (!SessionErrors.isEmpty(actionRequest)) { - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - } else { - if (Validator.isNotNull(intPraticaId) && Validator.isNotNull(dettPraticaId)) { - byte[] content = FileUtil.getBytes(file); - DocAggiuntivaLocalServiceUtil.addDocAggiuntiva(serviceContext.getUserId(), intPraticaId, dettPraticaId, - descrizione, feVisible, content, sourceFileName, serviceContext); - } - - } - - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - } catch (Exception e) { - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - _log.error("Error", e); - throw new SystemException(e); - } - - } - - public void deleteDocAggiuntiva(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { - long docAggiuntivaId = ParamUtil.getLong(actionRequest, "docAggiuntivaId"); - DocAggiuntivaServiceUtil.deleteDocAggiuntiva(docAggiuntivaId); - } - - @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, - PortletException { - - String id = resourceRequest.getResourceID(); - - try { - if ("downloadAll".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); - List docs = DocAggiuntivaServiceUtil.findByIntPratica(intPraticaId); - - ZipWriter zipWriter = ZipWriterFactoryUtil.getZipWriter(); - - for (DocAggiuntiva doc : docs) { - - InputStream inputStream = null; - try { - if (Validator.isNull(doc.getFileEntryId())) { - continue; - } - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(doc.getFileEntryId()); - inputStream = - DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), fileEntry.getVersion(), false); - - String name = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension(); - zipWriter.addEntry(name, inputStream); - } finally { - StreamUtil.cleanUp(inputStream); - } - } - - resourceResponse.reset(); - - File file = zipWriter.getFile(); - byte[] data = Files.readAllBytes(file.toPath()); - - resourceResponse.setContentType(ContentTypes.APPLICATION_ZIP); - resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); - resourceResponse - .addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + file.getName() + "\""); - resourceResponse.setContentLength(data.length); - - resourceResponse.getPortletOutputStream().write(data); - resourceResponse.getPortletOutputStream().flush(); - resourceResponse.getPortletOutputStream().close(); - - } else if ("importFile".equals(id)) { - - long classPk = ParamUtil.getLong(resourceRequest, "classPk"); - String className = ParamUtil.getString(resourceRequest, "className"); - - FilesImporter.importaFile(classPk, className); - - PortletResponseUtil - .write( - resourceResponse, - "

Completato

Refresh"); - - } else { - super.serveResource(resourceRequest, resourceResponse); - } - } catch (PortalException | SystemException e) { - _log.error(e, e); - throw new IOException(e); - } - } + private Log _log = LogFactoryUtil.getLog(DocAggiuntivaPortlet.class); + + public void uploadDocAggiuntiva(ActionRequest actionRequest, ActionResponse actionResponse) + throws PortalException, SystemException { + try { + UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); + ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); + long intPraticaId = ParamUtil.getLong(uploadRequest, "intPraticaId"); + long dettPraticaId = ParamUtil.getLong(uploadRequest, "dettPraticaId"); + String descrizione = ParamUtil.getString(uploadRequest, "descrizione"); + boolean feVisible = ParamUtil.getBoolean(uploadRequest, "feVisible"); + String sourceFileName = uploadRequest.getFileName("docFile"); + File file = uploadRequest.getFile("docFile"); + + if (Validator.isNotNull(sourceFileName) && file != null) { + // lunghezza fissata a 200 + if (sourceFileName.length() > 200) { + SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.length.valid"); + } + } else { + SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.is.request"); + } + + if (!SessionErrors.isEmpty(actionRequest)) { + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + } else { + if (Validator.isNotNull(intPraticaId) && Validator.isNotNull(dettPraticaId)) { + byte[] content = FileUtil.getBytes(file); + DocAggiuntivaLocalServiceUtil.addDocAggiuntiva(serviceContext.getUserId(), intPraticaId, + dettPraticaId, descrizione, feVisible, content, sourceFileName, serviceContext); + } + + } + + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + } catch (Exception e) { + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + _log.error("Error", e); + throw new SystemException(e); + } + + } + + public void deleteDocAggiuntiva(ActionRequest actionRequest, ActionResponse actionResponse) + throws Exception { + long docAggiuntivaId = ParamUtil.getLong(actionRequest, "docAggiuntivaId"); + DocAggiuntivaServiceUtil.deleteDocAggiuntiva(docAggiuntivaId); + } + + @Override + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) + throws IOException, PortletException { + + String id = resourceRequest.getResourceID(); + + try { + if ("downloadAll".equals(id)) { + long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); + List docs = DocAggiuntivaServiceUtil.findByIntPratica(intPraticaId); + + ZipWriter zipWriter = ZipWriterFactoryUtil.getZipWriter(); + + for (DocAggiuntiva doc : docs) { + + InputStream inputStream = null; + try { + if (Validator.isNull(doc.getFileEntryId())) { + continue; + } + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(doc.getFileEntryId()); + inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), + fileEntry.getVersion(), false); + + String name = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension(); + zipWriter.addEntry(name, inputStream); + } finally { + StreamUtil.cleanUp(inputStream); + } + } + + resourceResponse.reset(); + + File file = zipWriter.getFile(); + byte[] data = Files.readAllBytes(file.toPath()); + + resourceResponse.setContentType(ContentTypes.APPLICATION_ZIP); + resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); + resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + + file.getName() + "\""); + resourceResponse.setContentLength(data.length); + + resourceResponse.getPortletOutputStream().write(data); + resourceResponse.getPortletOutputStream().flush(); + resourceResponse.getPortletOutputStream().close(); + + } else if ("importFile".equals(id)) { + + long classPk = ParamUtil.getLong(resourceRequest, "classPk"); + String className = ParamUtil.getString(resourceRequest, "className"); + + FilesImporter.importaFile(classPk, className); + + PortletResponseUtil + .write(resourceResponse, + "

Completato

Refresh"); + + } else { + super.serveResource(resourceRequest, resourceResponse); + } + } catch (PortalException | SystemException e) { + _log.error(e, e); + throw new IOException(e); + } + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java index a2c0357a..baa0f345 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java @@ -32,7 +32,6 @@ import javax.portlet.ResourceRequest; import javax.portlet.ResourceResponse; import javax.servlet.http.HttpServletRequest; -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; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java index d7189cf6..f5078e34 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java @@ -527,7 +527,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet { String istruttore = "-"; if (intPratica.getStatusByUserId() != 0l) { User istruttoreUser = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); - if (istruttore != null) { + if (istruttoreUser != null) { istruttore = istruttoreUser.getFullName(); } else { istruttore = " [" + intPratica.getStatusByUserId() + "]"; @@ -702,7 +702,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet { String istruttore = "-"; if (intPratica.getStatusByUserId() != 0l) { User istruttoreUser = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); - if (istruttore != null) { + if (istruttoreUser != null) { istruttore = istruttoreUser.getFullName(); } else { istruttore = " [" + intPratica.getStatusByUserId() + "]"; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SismicaAdministrationPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SismicaAdministrationPortlet.java index faf57c0a..fc563867 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SismicaAdministrationPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SismicaAdministrationPortlet.java @@ -82,10 +82,9 @@ public class SismicaAdministrationPortlet extends MVCPortlet { } actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()])); } - - public void sostituisciDL(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, PortalException, IOException { - SismicaUtil.sostituisciDL(actionRequest, actionResponse); - + + public void sostituisciDL(ActionRequest actionRequest, ActionResponse actionResponse) + throws SystemException, PortalException, IOException { long userId = 0; String title = null; String description = null; @@ -95,125 +94,133 @@ public class SismicaAdministrationPortlet extends MVCPortlet { Date now = new Date(); long companyId = 0; long groupId = 0; - long defaultFolderId = 0; - Folder defaultFolder = null; - String folderName = null; - byte[] bytes = null; - long folderId = 0; - long repositoryId = 0; + long defaultFolderId = 0; + Folder defaultFolder = null; + String folderName = null; + byte[] bytes = null; + long folderId = 0; + long repositoryId = 0; ServiceContext serviceContext = new ServiceContext(); - + String className = ParamUtil.getString(actionRequest, "className"); - Long idOggetto = ParamUtil.getLong(actionRequest, "classPK"); - + Long idOggetto = ParamUtil.getLong(actionRequest, "classPK"); + UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); String sourceFileName = uploadRequest.getFileName("file"); File file = uploadRequest.getFile("file"); Folder folder = null; - - switch(className){ - case "it.tref.liferay.portos.bo.model.DocPratica": - DocPratica pratica = DocPraticaLocalServiceUtil.getDocPratica(idOggetto); - userId = pratica.getUserId(); - companyId = pratica.getCompanyId(); - groupId = pratica.getGroupId(); - - serviceContext.setCompanyId(companyId); - serviceContext.setScopeGroupId(groupId); - serviceContext.setUserId(userId); - - defaultFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - defaultFolder = DLAppLocalServiceUtil.getFolder(defaultFolderId); - folderName = PraticaUtil.getFolderName(pratica.getClassPk()); - folderId = defaultFolder.getFolderId(); - repositoryId = defaultFolder.getRepositoryId(); - - try { - folder = DLAppLocalServiceUtil.getFolder(repositoryId, folderId, folderName); - } catch (NoSuchFolderException e) { - folder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, folderId, folderName, - StringPool.BLANK, serviceContext); - } - - bytes = FileUtil.getBytes(file); - title = pratica.getTipologia() + StringPool.UNDERLINE + sourceFileName; - description = sourceFileName; - mimeType = MimeTypesUtil.getContentType(sourceFileName); - - /*try { - DLAppLocalServiceUtil.deleteFileEntry(pratica.getDlFileEntryId()); - } catch(PortalException e){ - - }*/ - - try { - fileEntry = DLAppLocalServiceUtil.getFileEntry(pratica.getDlFileEntryId()); - fileEntry = DLAppLocalServiceUtil.updateFileEntry(userId, fileEntry.getFileEntryId(), - now.getTime() + "_" + sourceFileName, mimeType, title, description, changeLog, false, bytes, - serviceContext); - } catch (PortalException e) { - fileEntry = DLAppLocalServiceUtil.addFileEntry(userId, folder.getRepositoryId(), folder.getFolderId(), now.getTime() + "_" + sourceFileName, - mimeType, title, description, changeLog, bytes, serviceContext); - } - - pratica.setDlFileEntryId(fileEntry.getFileEntryId()); - pratica.setSha256(DigestUtils.sha256Hex(bytes)); - DocPraticaLocalServiceUtil.updateDocPratica(pratica); - break; - - case "it.tref.liferay.portos.bo.model.Pagamento": - Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(idOggetto); - userId = pagamento.getUserId(); - companyId = pagamento.getCompanyId(); - groupId = pagamento.getGroupId(); - - serviceContext.setCompanyId(companyId); - serviceContext.setScopeGroupId(groupId); - serviceContext.setUserId(userId); - - defaultFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - defaultFolder = DLAppLocalServiceUtil.getFolder(defaultFolderId); - folderName = PraticaUtil.getFolderName(pagamento.getClassPk()); - folderId = defaultFolder.getFolderId(); - repositoryId = defaultFolder.getRepositoryId(); - - try { - folder = DLAppLocalServiceUtil.getFolder(repositoryId, folderId, folderName); - } catch (NoSuchFolderException e) { - folder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, folderId, folderName, - StringPool.BLANK, serviceContext); - } - - bytes = FileUtil.getBytes(file); - title = now.getTime() + StringPool.UNDERLINE + "pagamento_manuale" + StringPool.UNDERLINE - + pagamento.getPagamentoId() + StringPool.UNDERLINE + sourceFileName; - description = StringPool.BLANK; - mimeType = MimeTypesUtil.getContentType(sourceFileName); - - /*try { - DLAppLocalServiceUtil.deleteFileEntry(pagamento.getFileEntryId()); - } catch(PortalException e){ - - }*/ - - try { - fileEntry = DLAppLocalServiceUtil.getFileEntry(pagamento.getFileEntryId()); - fileEntry = DLAppLocalServiceUtil.updateFileEntry(userId, fileEntry.getFileEntryId(), - now.getTime() + "_" + sourceFileName, mimeType, title, description, changeLog, false, bytes, - serviceContext); - } catch (PortalException e) { - fileEntry = DLAppLocalServiceUtil.addFileEntry(userId, folder.getRepositoryId(), folder.getFolderId(), now.getTime() + "_" + sourceFileName, - mimeType, title, description, changeLog, bytes, serviceContext); - } - - pagamento.setFileEntryId(fileEntry.getFileEntryId()); - PagamentoLocalServiceUtil.updatePagamento(pagamento); - break; - - default: - - break; - + + switch (className) { + case "it.tref.liferay.portos.bo.model.DocPratica": + DocPratica pratica = DocPraticaLocalServiceUtil.getDocPratica(idOggetto); + userId = pratica.getUserId(); + companyId = pratica.getCompanyId(); + groupId = pratica.getGroupId(); + + serviceContext.setCompanyId(companyId); + serviceContext.setScopeGroupId(groupId); + serviceContext.setUserId(userId); + + defaultFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, + ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); + defaultFolder = DLAppLocalServiceUtil.getFolder(defaultFolderId); + folderName = PraticaUtil.getFolderName(pratica.getClassPk()); + folderId = defaultFolder.getFolderId(); + repositoryId = defaultFolder.getRepositoryId(); + + try { + folder = DLAppLocalServiceUtil.getFolder(repositoryId, folderId, folderName); + } catch (NoSuchFolderException e) { + folder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, folderId, folderName, + StringPool.BLANK, serviceContext); + } + + bytes = FileUtil.getBytes(file); + title = pratica.getTipologia() + StringPool.UNDERLINE + sourceFileName; + description = sourceFileName; + mimeType = MimeTypesUtil.getContentType(sourceFileName); + + /* + * try { + * DLAppLocalServiceUtil.deleteFileEntry(pratica.getDlFileEntryId + * ()); } catch(PortalException e){ + * + * } + */ + + try { + fileEntry = DLAppLocalServiceUtil.getFileEntry(pratica.getDlFileEntryId()); + fileEntry = DLAppLocalServiceUtil.updateFileEntry(userId, fileEntry.getFileEntryId(), + now.getTime() + "_" + sourceFileName, mimeType, title, description, changeLog, false, + bytes, serviceContext); + } catch (PortalException e) { + fileEntry = DLAppLocalServiceUtil.addFileEntry(userId, folder.getRepositoryId(), + folder.getFolderId(), now.getTime() + "_" + sourceFileName, mimeType, title, + description, changeLog, bytes, serviceContext); + } + + pratica.setDlFileEntryId(fileEntry.getFileEntryId()); + pratica.setSha256(DigestUtils.sha256Hex(bytes)); + DocPraticaLocalServiceUtil.updateDocPratica(pratica); + break; + + case "it.tref.liferay.portos.bo.model.Pagamento": + Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(idOggetto); + userId = pagamento.getUserId(); + companyId = pagamento.getCompanyId(); + groupId = pagamento.getGroupId(); + + serviceContext.setCompanyId(companyId); + serviceContext.setScopeGroupId(groupId); + serviceContext.setUserId(userId); + + defaultFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, + ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); + defaultFolder = DLAppLocalServiceUtil.getFolder(defaultFolderId); + folderName = PraticaUtil.getFolderName(pagamento.getClassPk()); + folderId = defaultFolder.getFolderId(); + repositoryId = defaultFolder.getRepositoryId(); + + try { + folder = DLAppLocalServiceUtil.getFolder(repositoryId, folderId, folderName); + } catch (NoSuchFolderException e) { + folder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, folderId, folderName, + StringPool.BLANK, serviceContext); + } + + bytes = FileUtil.getBytes(file); + title = now.getTime() + StringPool.UNDERLINE + "pagamento_manuale" + StringPool.UNDERLINE + + pagamento.getPagamentoId() + StringPool.UNDERLINE + sourceFileName; + description = StringPool.BLANK; + mimeType = MimeTypesUtil.getContentType(sourceFileName); + + /* + * try { + * DLAppLocalServiceUtil.deleteFileEntry(pagamento.getFileEntryId + * ()); } catch(PortalException e){ + * + * } + */ + + try { + fileEntry = DLAppLocalServiceUtil.getFileEntry(pagamento.getFileEntryId()); + fileEntry = DLAppLocalServiceUtil.updateFileEntry(userId, fileEntry.getFileEntryId(), + now.getTime() + "_" + sourceFileName, mimeType, title, description, changeLog, false, + bytes, serviceContext); + } catch (PortalException e) { + fileEntry = DLAppLocalServiceUtil.addFileEntry(userId, folder.getRepositoryId(), + folder.getFolderId(), now.getTime() + "_" + sourceFileName, mimeType, title, + description, changeLog, bytes, serviceContext); + } + + pagamento.setFileEntryId(fileEntry.getFileEntryId()); + PagamentoLocalServiceUtil.updatePagamento(pagamento); + break; + + default: + + break; + } } @@ -268,14 +275,15 @@ public class SismicaAdministrationPortlet extends MVCPortlet { actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()])); } - public void manutenzioneDatabase(ActionRequest actionRequest, ActionResponse actionResponse) + public void testInterno(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - List esito = PuliziaDatabase.pulisci(serviceContext); + List esito = SismicaUtil.testInterno(serviceContext); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()])); } - - public void inviaAvviso(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { + + public void inviaAvviso(ActionRequest actionRequest, ActionResponse actionResponse) + throws SystemException { SismicaUtil.inviaAvviso(actionRequest, actionResponse); } @@ -294,23 +302,4 @@ public class SismicaAdministrationPortlet extends MVCPortlet { sdf.format(dataProssimoSorteggio), serviceContext); } - - private ServiceContext getServiceContext(ControlloPratica controlloPratica) { - - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(controlloPratica.getCompanyId()); - serviceContext.setScopeGroupId(controlloPratica.getGroupId()); - serviceContext.setUserId(controlloPratica.getUserId()); - return serviceContext; - } - - private ServiceContext getServiceContext(DettPratica dettPratica) { - - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(dettPratica.getCompanyId()); - serviceContext.setScopeGroupId(dettPratica.getGroupId()); - serviceContext.setUserId(dettPratica.getUserId()); - return serviceContext; - } - } 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 82b76465..7e5f656f 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 @@ -3,6 +3,7 @@ package it.tref.liferay.portos.bo.scheduler; 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.report.builder.bean.ReportAvvisoBean; import it.tref.liferay.portos.bo.report.builder.builder.ReportAvvisoBeanBuilder; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; @@ -20,6 +21,7 @@ import it.tref.liferay.portos.report.shared.util.ReportUtil; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; @@ -85,7 +87,7 @@ public class SchedulerGeneraDocumento implements MessageListener { AvvisoLocalServiceUtil.updateAvvisoErrore(avviso.getAvvisoId(), true); } - if (fileEntryTemplate != null && avviso.getOldFileEntryIdBase() == 0L) { + if (fileEntryTemplate != null) { _log.debug("SchedulerGeneraDocumento - inizio genera documento"); generaDocumento(avviso, fileEntryTemplate.getFileEntryId()); _log.debug("SchedulerGeneraDocumento - fine genera documento"); @@ -133,7 +135,6 @@ public class SchedulerGeneraDocumento implements MessageListener { JSONDeserializer> deserializer = JSONFactoryUtil.createJSONDeserializer(); parameters.putAll(deserializer.deserialize(avviso.getJsonParameters())); } - Object bean; if (DettPratica.class.getName().equals(avviso.getClassName())) { DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); @@ -148,7 +149,7 @@ public class SchedulerGeneraDocumento implements MessageListener { } } } - bean = ReportAvvisoBeanBuilder.build(avviso, parameters); + ReportAvvisoBean bean = ReportAvvisoBeanBuilder.build(avviso, parameters); String resourcePath = getClass().getName().replaceAll("\\w+\\.", "../") .replace(getClass().getSimpleName(), ReportConstants.PATH_LOGO_REGIONE); @@ -173,11 +174,16 @@ public class SchedulerGeneraDocumento implements MessageListener { reportDto.setFolderId(folderId); reportDto.setFileName(fileName); reportDto.setParameters(parameters); - // reportDto.setDataSource(bean); reportDto.setShowNumberOfPage(true); reportDto.setType(ReportConstants.ReportType.JRXML_TO_PDF.toString()); + _log.info("*********************************************************"); _log.info("generaDocumento: generateReport: " + fileEntryIdTemplate); + for (Entry entry : parameters.entrySet()) { + _log.info(entry.getKey() + " = " + entry.getValue()); + } + _log.info("*********************************************************"); + ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, bean); idFileEntry = result.getFileEntryIds()[0]; // idFileEntry = (Long) 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 23fd7399..5cee6adc 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 @@ -211,20 +211,25 @@ public class SchedulerInvioDocumento implements MessageListener { for (DettPratica integrazione : integrazioni) { try { - + ControlloPratica controlloPratica = null; List controlli = ControlloPraticaLocalServiceUtil .findByIntPraticaId_Status(integrazione.getIntPraticaId(), WorkflowConstants.STATUS_PENDING); - if (!controlli.isEmpty()) { - ControlloPratica controlloPratica = controlli.get(0); - - invioSignal(integrazione, controlloPratica, - WorkflowConstants.WORKFLOW_SIGNAL_INTEGRAZIONE); + if (controlli.isEmpty()) { + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(integrazione.getCompanyId()); + serviceContext.setScopeGroupId(integrazione.getGroupId()); + serviceContext.setUserId(integrazione.getUserId()); + + controlloPratica = ControlloPraticaLocalServiceUtil.addControlloPratica( + integrazione.getGroupId(), integrazione.getUserId(), + integrazione.getIntPraticaId(), integrazione.getDettPraticaId(), false, + serviceContext); } else { - _log.warn("signal non inviato per l'integrazione " - + integrazione.getDettPraticaId()); + controlloPratica = controlli.get(0); } - + invioSignal(integrazione, controlloPratica, + WorkflowConstants.WORKFLOW_SIGNAL_INTEGRAZIONE); } catch (Exception e) { _log.error("Error", e); } @@ -569,7 +574,6 @@ public class SchedulerInvioDocumento implements MessageListener { Date dtInvio = avviso.getDtInvio(); if (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) { long intPraticaId = controlloPratica.getIntPraticaId(); - long dettPraticaId = controlloPratica.getDettPraticaId(); IntPratica intPratica = null; try { intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); @@ -577,7 +581,6 @@ public class SchedulerInvioDocumento implements MessageListener { _log.error(e, e); } - ServiceContext serviceContext = getServiceContext(controlloPratica); // FIX prendo la data di vidimazione e non quella di sottoposto a // parere per avvio dei tempi Avviso avvisoExtra = null; 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 616687db..72efbc66 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 @@ -280,187 +280,187 @@ public class IntPraticaLocalServiceClpInvoker { _methodParameterTypes242 = new String[] { "long", "java.lang.String" }; - _methodName244 = "search"; + _methodName243 = "search"; - _methodParameterTypes244 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes243 = new String[] { "java.util.List", "int", "int" }; - _methodName245 = "countSearch"; + _methodName244 = "countSearch"; - _methodParameterTypes245 = new String[] { "java.util.List" }; + _methodParameterTypes244 = new String[] { "java.util.List" }; - _methodName246 = "searchWithIntPraticaId"; + _methodName245 = "searchWithIntPraticaId"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes245 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName247 = "countSearchWithIntPraticaId"; + _methodName246 = "countSearchWithIntPraticaId"; - _methodParameterTypes247 = new String[] { "java.util.List", "long" }; + _methodParameterTypes246 = new String[] { "java.util.List", "long" }; - _methodName248 = "allegaFileAnnullamento"; + _methodName247 = "allegaFileAnnullamento"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes247 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName249 = "generateFileAnnullamento"; + _methodName248 = "generateFileAnnullamento"; - _methodParameterTypes249 = new String[] { + _methodParameterTypes248 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName250 = "deleteFileAnnullamento"; + _methodName249 = "deleteFileAnnullamento"; - _methodParameterTypes250 = new String[] { "long" }; + _methodParameterTypes249 = new String[] { "long" }; - _methodName251 = "completeAnnullamento"; + _methodName250 = "completeAnnullamento"; - _methodParameterTypes251 = new String[] { "long" }; + _methodParameterTypes250 = new String[] { "long" }; - _methodName252 = "cambiaIstruttore"; + _methodName251 = "cambiaIstruttore"; - _methodParameterTypes252 = new String[] { "long", "long", "long" }; + _methodParameterTypes251 = new String[] { "long", "long", "long" }; - _methodName253 = "countCaricoLavoroCF"; + _methodName252 = "countCaricoLavoroCF"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes252 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName254 = "countCaricoLavoroIstruttore"; + _methodName253 = "countCaricoLavoroIstruttore"; - _methodParameterTypes254 = new String[] { + _methodParameterTypes253 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName255 = "generateReportPratica"; + _methodName254 = "generateReportPratica"; - _methodParameterTypes255 = new String[] { + _methodParameterTypes254 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName256 = "updateModifiedDate"; + _methodName255 = "updateModifiedDate"; - _methodParameterTypes256 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes255 = new String[] { "long", "java.util.Date" }; - _methodName257 = "countAutorizzazione"; + _methodName256 = "countAutorizzazione"; - _methodParameterTypes257 = new String[] { + _methodParameterTypes256 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName258 = "countSanatorie"; + _methodName257 = "countSanatorie"; - _methodParameterTypes258 = new String[] { + _methodParameterTypes257 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName259 = "countOpereMinoreImportanza"; + _methodName258 = "countOpereMinoreImportanza"; - _methodParameterTypes259 = new String[] { + _methodParameterTypes258 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName260 = "countDeposito"; + _methodName259 = "countDeposito"; - _methodParameterTypes260 = new String[] { + _methodParameterTypes259 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName261 = "countVidimate"; + _methodName260 = "countVidimate"; - _methodParameterTypes261 = new String[] { + _methodParameterTypes260 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName262 = "countControllo"; + _methodName261 = "countControllo"; - _methodParameterTypes262 = new String[] { + _methodParameterTypes261 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName263 = "importaVecchiFilesFascicolo"; + _methodName262 = "importaVecchiFilesFascicolo"; - _methodParameterTypes263 = new String[] { "long", "int", "int" }; + _methodParameterTypes262 = new String[] { "long", "int", "int" }; - _methodName264 = "findIntPraticaNotExist"; + _methodName263 = "findIntPraticaNotExist"; - _methodParameterTypes264 = new String[] { }; + _methodParameterTypes263 = new String[] { }; - _methodName265 = "riparaWorkflow"; + _methodName264 = "riparaWorkflow"; - _methodParameterTypes265 = new String[] { }; + _methodParameterTypes264 = new String[] { }; - _methodName266 = "reIndexFascicolo"; + _methodName265 = "reIndexFascicolo"; - _methodParameterTypes266 = new String[] { + _methodParameterTypes265 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName267 = "reIndexFasciolo"; + _methodName266 = "reIndexFasciolo"; - _methodParameterTypes267 = new String[] { "java.lang.String", "long" }; + _methodParameterTypes266 = new String[] { "java.lang.String", "long" }; - _methodName268 = "reIndexFasciolo"; + _methodName267 = "reIndexFasciolo"; - _methodParameterTypes268 = new String[] { "long", "long" }; + _methodParameterTypes267 = new String[] { "long", "long" }; - _methodName269 = "trovaDoppioni"; + _methodName268 = "trovaDoppioni"; - _methodParameterTypes269 = new String[] { }; + _methodParameterTypes268 = new String[] { }; - _methodName270 = "findByNumeroProgetto"; + _methodName269 = "findByNumeroProgetto"; - _methodParameterTypes270 = new String[] { "java.lang.String" }; + _methodParameterTypes269 = new String[] { "java.lang.String" }; - _methodName271 = "findByTerritorioId"; + _methodName270 = "findByTerritorioId"; - _methodParameterTypes271 = new String[] { "long" }; + _methodParameterTypes270 = new String[] { "long" }; - _methodName272 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName271 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - _methodParameterTypes272 = new String[] { + _methodParameterTypes271 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName273 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName272 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; - _methodParameterTypes273 = new String[] { + _methodParameterTypes272 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName274 = "reportPraticheVidimate"; + _methodName273 = "reportPraticheVidimate"; - _methodParameterTypes274 = new String[] { + _methodParameterTypes273 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName275 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName274 = "reportPraticheVidimateCalcolaDataSorteggio"; - _methodParameterTypes275 = new String[] { + _methodParameterTypes274 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName276 = "countIngressiAutorizzazioni"; + _methodName275 = "countIngressiAutorizzazioni"; - _methodParameterTypes276 = new String[] { + _methodParameterTypes275 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName277 = "countIngressiDepositi"; + _methodName276 = "countIngressiDepositi"; - _methodParameterTypes277 = new String[] { + _methodParameterTypes276 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName278 = "countIngressiCO"; + _methodName277 = "countIngressiCO"; - _methodParameterTypes278 = new String[] { + _methodParameterTypes277 = new String[] { "java.util.Date", "java.util.Date", "long" }; } @@ -793,62 +793,62 @@ public class IntPraticaLocalServiceClpInvoker { (java.lang.String)arguments[1]); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, 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 (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -856,92 +856,100 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2], (java.lang.Long[])arguments[3]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName259.equals(name) && - Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, 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 (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, 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 (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return IntPraticaLocalServiceUtil.importaVecchiFilesFascicolo(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); + } + if (_methodName264.equals(name) && Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { - return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); + return IntPraticaLocalServiceUtil.riparaWorkflow(); } if (_methodName265.equals(name) && Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { - return IntPraticaLocalServiceUtil.riparaWorkflow(); + IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], + ((Long)arguments[1]).longValue()); + + return null; } if (_methodName266.equals(name) && Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], + IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; @@ -949,7 +957,7 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName267.equals(name) && Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], + IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; @@ -957,67 +965,59 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName268.equals(name) && Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - - return null; + return IntPraticaLocalServiceUtil.trovaDoppioni(); } if (_methodName269.equals(name) && Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { - return IntPraticaLocalServiceUtil.trovaDoppioni(); + return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } if (_methodName270.equals(name) && Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); + return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } if (_methodName271.equals(name) && Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); - } - - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName272.equals(name) && + Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName273.equals(name) && + Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName275.equals(name) && - Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { + if (_methodName274.equals(name) && + Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { + if (_methodName275.equals(name) && + Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName276.equals(name) && + Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName277.equals(name) && + Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } @@ -1131,6 +1131,8 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes241; private String _methodName242; private String[] _methodParameterTypes242; + private String _methodName243; + private String[] _methodParameterTypes243; private String _methodName244; private String[] _methodParameterTypes244; private String _methodName245; @@ -1199,6 +1201,4 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes276; private String _methodName277; private String[] _methodParameterTypes277; - private String _methodName278; - private String[] _methodParameterTypes278; } \ 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/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 82f96da1..fa00d6df 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 @@ -1036,31 +1036,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return intPraticaFinder.canAddCollaudoCount(codiceFiscale); } - private DynamicQuery createQueryCollaudi(long companyId, String codiceFiscale, List ids) - throws SystemException, PortalException { - - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); - dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - - dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_ANY)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("sospesa", false)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); - - dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoCollaudo", codiceFiscale)); - - Disjunction or = RestrictionsFactoryUtil.disjunction(); - or.add(RestrictionsFactoryUtil.eq("fineLavoriParziale", true)); - or.add(RestrictionsFactoryUtil.eq("fineLavoriTotale", true)); - dynamicQuery.add(or); - - dynamicQuery.add(RestrictionsFactoryUtil.eq("collaudoTotale", false)); - - dynamicQuery.add(RestrictionsFactoryUtil.in("intPraticaId", ids)); - - return dynamicQuery; - } - public List search(List groupIds, int start, int end) throws SystemException { // TODO Modificare tramite Indexer @@ -1758,11 +1733,8 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { intIndexer.delete(companyId, intPratica.getUuid()); intIndexer.reindex(IntPratica.class.getName(), intPratica.getIntPraticaId()); - DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); - queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId())); - - List appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, - QueryUtil.ALL_POS, QueryUtil.ALL_POS); + List appList = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica + .getIntPraticaId()); if (appList != null && !appList.isEmpty()) { for (ControlloPratica controlloPratica : appList) { @@ -1785,14 +1757,11 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } public void reIndexFasciolo(long intPraticaId, long companyId) throws PortalException, SystemException { - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - reIndexFascicolo(intPratica, companyId); + reIndexFascicolo(IntPraticaLocalServiceUtil.getIntPratica(intPraticaId), companyId); } public List trovaDoppioni() throws SystemException { - return IntPraticaFinderUtil.trovaDoppioni(); - } public IntPratica findByNumeroProgetto(String numeroProgetto) throws SystemException { 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 b040f227..5c96356f 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,6 +45,7 @@ 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 63caa01d..15633d6f 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,6 +46,7 @@ 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 b95c271d..38e33edc 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,6 +46,7 @@ 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 0b546e1a..02dcaba3 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,6 +45,7 @@ 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 b0b64b21..4a23bffd 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,6 +46,7 @@ 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; 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 0b7f9ee2..f5b8166f 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,6 +45,7 @@ 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 66507dd0..32809343 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,6 +45,7 @@ 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 48cf51eb..a4fa6f91 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,6 +45,7 @@ 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 402cecd0..8c56fb32 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,6 +46,7 @@ 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 bf34f897..f35bff1b 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,6 +45,7 @@ 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; 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 649a5476..c25ae1dc 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,6 +45,7 @@ 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 42630357..255330f7 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,6 +46,7 @@ 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 41c1b2be..15f0504f 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,6 +45,7 @@ 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 ad50d7ea..f80406ab 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,6 +42,7 @@ 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/IUVPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IUVPersistenceImpl.java index a6ba54ac..6f469f0e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IUVPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IUVPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchIUVException; import it.tref.liferay.portos.bo.model.IUV; import it.tref.liferay.portos.bo.model.impl.IUVImpl; import it.tref.liferay.portos.bo.model.impl.IUVModelImpl; +import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; 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/InfoFascicoloPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistenceImpl.java index 12f22a0a..b85535de 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; import it.tref.liferay.portos.bo.model.InfoFascicolo; import it.tref.liferay.portos.bo.model.impl.InfoFascicoloImpl; import it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl; +import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; 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 97842225..bb4019f2 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,6 +48,7 @@ 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; 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 8dbf29df..ee3b3b9b 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,6 +46,7 @@ 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; 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 c6ce3907..e4133c60 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,6 +45,7 @@ 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/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 daa33e1b..2c7a846f 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,6 +43,7 @@ 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 29c4a390..ef2db5f2 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,6 +45,7 @@ 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 ec8a983f..fc566b28 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,6 +45,7 @@ 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 78333501..0c095d3d 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,6 +42,7 @@ 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 720078c4..252fc452 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,6 +45,7 @@ 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 a9c7f7d5..c8e0dee9 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,6 +44,7 @@ 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/service/persistence/UtentePortosPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/UtentePortosPersistenceImpl.java index 89f06b61..83b7ed61 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/UtentePortosPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/UtentePortosPersistenceImpl.java @@ -43,6 +43,7 @@ import it.tref.liferay.portos.bo.NoSuchUtentePortosException; import it.tref.liferay.portos.bo.model.UtentePortos; import it.tref.liferay.portos.bo.model.impl.UtentePortosImpl; import it.tref.liferay.portos.bo.model.impl.UtentePortosModelImpl; +import it.tref.liferay.portos.bo.service.persistence.UtentePortosPersistence; import java.io.Serializable; 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 e5f9551d..7d357759 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=2508 - build.date=1603288095361 + build.number=2512 + build.date=1603814035425 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp index 45552cd8..1592023e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp @@ -1,4 +1,3 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> <%@page import="it.tref.liferay.portos.bo.service.permission.IntPraticaPermission"%> <%@page import="java.util.ArrayList"%> @@ -88,7 +87,7 @@ > - + <% String clazz = StringPool.BLANK; if(docAggiuntiva.getFeVisible()){ @@ -98,7 +97,16 @@ - + <% + String fileName = "fileName"; + try { + fileName = docAggiuntiva.getFileName(); + } catch (Exception e) { + fileName = "File " + docAggiuntiva.getFileEntryId() + " non disponibile (" + + e.getMessage() + ")"; + } + %> + @@ -119,17 +127,22 @@ -
- -
<% FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(docAggiuntiva.getFileEntryId()); - String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); + String downloadUrl = null; + try { + downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); + } catch (Exception e) { + } %> -
- -
- + +
+ +
+
+ +
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp index 61383eab..9302040f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp @@ -96,14 +96,14 @@ String dataProssimoSorteggio = - +
-
Manutenzione Database
- +
Test Interno
+
- +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/dom4j.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/dom4j.jar deleted file mode 100644 index c8c4dbb9..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/dom4j.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/geronimo-stax-api_1.0_spec.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/geronimo-stax-api_1.0_spec.jar deleted file mode 100644 index 0d6d3742..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/geronimo-stax-api_1.0_spec.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/itext.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/itext.jar index 0a324006..5d319fcd 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/itext.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/itext.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports.jar index fcc8f8e7..41819e1c 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/jasperreports.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi-ooxml-schemas.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi-ooxml-schemas.jar deleted file mode 100644 index 82282b54..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi-ooxml-schemas.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi-ooxml.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi-ooxml.jar deleted file mode 100644 index 5f36eb4e..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi-ooxml.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi.jar deleted file mode 100644 index a08d9535..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/poi.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/stax-api.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/stax-api.jar deleted file mode 100644 index d9a16651..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/stax-api.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/util-java.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/util-java.jar deleted file mode 100644 index 6b5d95f8..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/util-java.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/xmlbeans.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/xmlbeans.jar deleted file mode 100644 index ccd81634..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/xmlbeans.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml index 0494954f..916c5061 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/ivy.xml @@ -17,7 +17,7 @@ - + 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 6c98f10f..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 @@ -8ac2501ca718b6e57f0038572748dfb3 +887cd0518266a1239f9bbb476c5323de diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant-launcher.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant-launcher.jar new file mode 100644 index 00000000..7c8f849e Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant-launcher.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant.jar index 7f5be4a4..70471777 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/ant.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/antlr2.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/antlr2.jar deleted file mode 100644 index 42f25e54..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/antlr2.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/asm.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/asm.jar deleted file mode 100644 index 7638ae05..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/asm.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/avalon-framework-impl.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/avalon-framework-impl.jar new file mode 100644 index 00000000..ca61697c Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/avalon-framework-impl.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/barcode4j-2.1.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/barcode4j.jar similarity index 100% rename from liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/barcode4j-2.1.jar rename to liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/barcode4j.jar diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-anim.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-anim.jar index 6913e421..2a150b2b 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-anim.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-anim.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-awt-util.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-awt-util.jar index e64605af..f83b5bd4 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-awt-util.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-awt-util.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-bridge.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-bridge.jar index 62c10bae..872cf27a 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-bridge.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-bridge.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-css.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-css.jar index c1f1c9a8..ef3013d0 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-css.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-css.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-dom.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-dom.jar index 32d5b46d..02064754 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-dom.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-dom.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-ext.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-ext.jar index 8c904e1f..57fb2732 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-ext.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-ext.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-gvt.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-gvt.jar index ee47ec82..9aa96868 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-gvt.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-gvt.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-js.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-js.jar new file mode 100644 index 00000000..ccad3cc1 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-js.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-parser.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-parser.jar index 286b3799..b84ad36e 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-parser.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-parser.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-script.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-script.jar index 433f02e6..a684f1c7 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-script.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-script.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-svg-dom.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-svg-dom.jar index b4c8a620..463d0e01 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-svg-dom.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-svg-dom.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-util.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-util.jar index 86d75e70..c50d1ff2 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-util.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-util.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-xml.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-xml.jar index d05eb25f..45ba1570 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-xml.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/batik-xml.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcmail-jdk14.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcmail-jdk14.jar new file mode 100644 index 00000000..ab606b5f Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcmail-jdk14.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcprov-jdk14.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcprov-jdk14.jar new file mode 100644 index 00000000..d1befb7f Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bcprov-jdk14.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bctsp-jdk14.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bctsp-jdk14.jar new file mode 100644 index 00000000..058fde1e Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/bctsp-jdk14.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/castor.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/castor.jar new file mode 100644 index 00000000..5a8d7a66 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/castor.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-beanutils.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-beanutils.jar index 6baf5ecb..caf7ae33 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-beanutils.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-beanutils.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-cli.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-cli.jar new file mode 100644 index 00000000..22a004e1 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-cli.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-digester.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-digester.jar index 1110f0aa..a07cfa8e 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-digester.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/commons-digester.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/groovy-all-2.0.1.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/groovy-all-2.0.1.jar deleted file mode 100644 index aad41857..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/groovy-all-2.0.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/iText-2.1.7.js1.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/itext.jar similarity index 93% rename from liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/iText-2.1.7.js1.jar rename to liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/itext.jar index 0a324006..5d319fcd 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/iText-2.1.7.js1.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/itext.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jOpenDocument-1.3.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jOpenDocument.jar similarity index 100% rename from liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jOpenDocument-1.3.jar rename to liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jOpenDocument.jar diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-annotations.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-annotations.jar new file mode 100644 index 00000000..88064d07 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-annotations.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-core.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-core.jar new file mode 100644 index 00000000..51d1fdeb Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-core.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-databind.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-databind.jar new file mode 100644 index 00000000..20f98992 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jackson-databind.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts-5.0.0.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts.jar similarity index 99% rename from liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts-5.0.0.jar rename to liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts.jar index 63d40a66..c778df33 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts-5.0.0.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-fonts.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-5.0.0.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports.jar similarity index 65% rename from liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-5.0.0.jar rename to liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports.jar index f03768ad..41819e1c 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports-5.0.0.jar and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jasperreports.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jcommon.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jcommon.jar new file mode 100644 index 00000000..d0dc26de Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jcommon.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jdtcore.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jdtcore.jar new file mode 100644 index 00000000..d9207382 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jdtcore.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jfreechart.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jfreechart.jar new file mode 100644 index 00000000..73be90fd Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/jfreechart.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/junit.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/junit.jar new file mode 100644 index 00000000..914a5cfa Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/junit.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portal-compat-client.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portal-compat-client.jar deleted file mode 100644 index 8b2f0105..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/portal-compat-client.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xalan.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xalan.jar new file mode 100644 index 00000000..73cf175f Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xalan.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xml-apis.jar b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xml-apis.jar new file mode 100644 index 00000000..d42c0ea6 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/lib/xml-apis.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/report/jasper/core/ReportEngine.java b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/report/jasper/core/ReportEngine.java index 54e4bd2e..b1871213 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/report/jasper/core/ReportEngine.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/report/jasper/core/ReportEngine.java @@ -33,410 +33,443 @@ import com.liferay.portal.kernel.util.HttpUtil; public class ReportEngine { - public static final int EXPORT_TO_PDF = 8; - public static final int EXPORT_TO_PDFA_1A = 9; - public static final int EXPORT_TO_PDFA_1B = 10; - public static final int EXPORT_TO_TXT = 1; - public static final int EXPORT_TO_HTML = 2; - public static final int EXPORT_TO_XLS = 3; - public static final int EXPORT_TO_RTF = 4; - public static final int EXPORT_TO_DOC = 5; - public static final int EXPORT_TO_HTM = 6; - public static final int EXPORT_TO_CSV = 7; - public static final int EXPORT_TO_DOCX = 1; + public static final int EXPORT_TO_PDF = 8; + public static final int EXPORT_TO_PDFA_1A = 9; + public static final int EXPORT_TO_PDFA_1B = 10; + public static final int EXPORT_TO_TXT = 1; + public static final int EXPORT_TO_HTML = 2; + public static final int EXPORT_TO_XLS = 3; + public static final int EXPORT_TO_RTF = 4; + public static final int EXPORT_TO_DOC = 5; + public static final int EXPORT_TO_HTM = 6; + public static final int EXPORT_TO_CSV = 7; + public static final int EXPORT_TO_DOCX = 1; - public static final String SRGB_IEC61966_2_1_BLACK_SCALED = "profile/sRGB_IEC61966-2-1_black_scaled.icc"; - public static final String SRGB_IEC61966_2_1_NO_BLACK_SCALING = "profile/sRGB_IEC61966-2-1_no_black_scaling.icc"; - public static final String SRGB_V4_ICC_PREFERENCE_DISPLAYCLASS = "profile/sRGB_v4_ICC_preference_displayclass.icc"; - public static final String SRGB_V4_ICC_PREFERENCE = "profile/sRGB_v4_ICC_preference.icc"; + public static final String SRGB_IEC61966_2_1_BLACK_SCALED = "profile/sRGB_IEC61966-2-1_black_scaled.icc"; + public static final String SRGB_IEC61966_2_1_NO_BLACK_SCALING = "profile/sRGB_IEC61966-2-1_no_black_scaling.icc"; + public static final String SRGB_V4_ICC_PREFERENCE_DISPLAYCLASS = "profile/sRGB_v4_ICC_preference_displayclass.icc"; + public static final String SRGB_V4_ICC_PREFERENCE = "profile/sRGB_v4_ICC_preference.icc"; - private String profile = SRGB_IEC61966_2_1_BLACK_SCALED; + private String profile = SRGB_IEC61966_2_1_BLACK_SCALED; - public static final String[] ESTENSIONI = {"txt", "html", "xls", "rtf", "doc", "htm", "cvs", "docx", "pdf", "pdf", - "pdf"}; + public static final String[] ESTENSIONI = { "txt", "html", "xls", "rtf", "doc", "htm", "cvs", "docx", + "pdf", "pdf", "pdf" }; - private String reportPath = "report/"; - private String templatePath = "template"; - private String templateExt = "jrxml"; + private String reportPath = "report/"; + private String templatePath = "template"; + private String templateExt = "jrxml"; - private ReportInterface CSVDati = null; - private String nomiReport = null; - private String nomeTemplate = null; - private HashMap parameters = null; - private Integer exportType; + private ReportInterface CSVDati = null; + private String nomiReport = null; + private String nomeTemplate = null; + private HashMap parameters = null; + private Integer exportType; - private Connection con = null; - private String classPath = ""; - private String compileTempPath = ""; + private Connection con = null; + private String classPath = ""; + private String compileTempPath = ""; - private JRExporter exporter = null; - private JRDataSource datasource = null; - private InputStream fileTemplate; + private JRExporter exporter = null; + private JRDataSource datasource = null; + private InputStream fileTemplate; - public ReportEngine(InputStream fileTemlate) { + public ReportEngine(InputStream fileTemlate) { - this.fileTemplate = fileTemlate; - } + this.fileTemplate = fileTemlate; + } - public ReportEngine(String templatePath, String reportPath, String classPath, String compileTempPath) { + public ReportEngine(String templatePath, String reportPath, String classPath, String compileTempPath) { - super(); - this.templatePath = sistemaSlash(templatePath); - this.classPath = sistemaSlash(classPath); - this.compileTempPath = sistemaSlash(compileTempPath); - this.reportPath = sistemaSlash(reportPath); - } + super(); + this.templatePath = sistemaSlash(templatePath); + this.classPath = sistemaSlash(classPath); + this.compileTempPath = sistemaSlash(compileTempPath); + this.reportPath = sistemaSlash(reportPath); + } - public ReportEngine(String templatePath, String classPath, String compileTempPath) { + public ReportEngine(String templatePath, String classPath, String compileTempPath) { - super(); - this.templatePath = sistemaSlash(templatePath); - this.classPath = sistemaSlash(classPath); - this.compileTempPath = sistemaSlash(compileTempPath); - } + super(); + this.templatePath = sistemaSlash(templatePath); + this.classPath = sistemaSlash(classPath); + this.compileTempPath = sistemaSlash(compileTempPath); + } - public ReportEngine(String templatePath, String reportPath) { + public ReportEngine(String templatePath, String reportPath) { - super(); - this.reportPath = sistemaSlash(reportPath); - this.templatePath = sistemaSlash(templatePath); - } + super(); + this.reportPath = sistemaSlash(reportPath); + this.templatePath = sistemaSlash(templatePath); + } - public ReportEngine(String templatePath) { + public ReportEngine(String templatePath) { - super(); - this.templatePath = sistemaSlash(templatePath); - } - - public String getTemplatePath() { - - return templatePath; - } - - public void setTemplatePath(String templatePath) { - - this.templatePath = sistemaSlash(templatePath); - } - - public String getReportPath() { - - return reportPath; - } - - public void setReportPath(String reportPath) { - - this.reportPath = sistemaSlash(reportPath); - } - - public String getClassPath() { - - return classPath; - } - - public void setClassPath(String classPath) { - - this.classPath = sistemaSlash(classPath); - } - - public String getCompileTempPath() { - - return compileTempPath; - } - - public void setCompileTempPath(String compileTempPath) { - - this.compileTempPath = sistemaSlash(compileTempPath); - } - - public InputStream getFileTemplate() { - - return fileTemplate; - } - - public void setFileTemplate(FileInputStream fileTemplate) { - - this.fileTemplate = fileTemplate; - } - - /** - * Funzione per inserire e verificare i dati CSV, al fine di costruire un singolo file di report - * - * @param nomeTemplate nome del/i file/s template del/i report/s - * @param nomiReport nome del/i report/s - * @param con Connessione al database - * @param numColonne numero delle colonne dei dati CSV - * @param parametri HashMap dei parametri da passare al report - * @throws Exception 1.inesistenza template 2.numero colonne nei dati maggiore del numero indicato - * da numColonne 3. I vettori dei dati non sono della stessa lunghezza - */ - public void insertDataConnection(Connection con, HashMap parametri, Integer exportType) - throws Exception { - - insertData(parametri, exportType); - this.con = con; - this.CSVDati = null; - } - - public void insertDataConnection(String templateName, String reportName, Connection con, - HashMap parametri, Integer exportType) throws Exception { - - insertData(templateName, reportName, parametri, exportType); - this.con = con; - this.CSVDati = null; - } - - /** - * Funzione per inserire e verificare i dati CSV, al fine di costruire pi� file report, diversi - * tra loro - * - * @param nomeTemplate nome del/i file/s template del/i report/s - * @param nomiReport nome del/i report/s - * @param csvDati i dati in formato CSV (ogni riga deve terminare con \r\n, anche l'ultima) - * @param numColonne numero delle colonne dei dati CSV - * @param parametri HashMap dei parametri da passare al report - * @throws Exception 1.inesistenza template 2.numero colonne nei dati maggiore del numero indicato - * da numColonne 3. I vettori dei dati non sono della stessa lunghezza - */ - public void insertDataSource(String nomeTemplate, String nomiReport, ReportInterface csvDati, - HashMap parametri, Integer exportType) throws Exception { - - insertData(nomeTemplate, nomiReport, parametri, exportType); - this.CSVDati = csvDati; - this.con = null; - } - - public void insertDataSource(ReportInterface csvDati, HashMap parametri, Integer exportType) - throws Exception { - - insertData(parametri, exportType); - this.CSVDati = csvDati; - this.con = null; - } - - /** - * Funzione per inserire e verificare i dati CSV, al fine di costruire pi� file report, diversi - * tra loro - * - * @param nomeTemplate nome del/i file/s template del/i report/s - * @param nomiReport nome del/i report/s - * @param csvDati i dati in formato CSV (ogni riga deve terminare con \r\n, anche l'ultima) - * @param numColonne numero delle colonne dei dati CSV - * @param parametri HashMap dei parametri da passare al report - * @throws Exception 1.inesistenza template 2.numero colonne nei dati maggiore del numero indicato - * da numColonne 3. I vettori dei dati non sono della stessa lunghezza - */ - public void insertSimpleData(String nomeTemplate, String nomiReport, HashMap parametri, - Integer exportType) throws Exception { - - insertData(nomeTemplate, nomiReport, parametri, exportType); - this.CSVDati = null; - this.con = null; - } - - public void insertSimpleData(HashMap parametri, Integer exportType) throws Exception { - - insertData(parametri, exportType); - this.CSVDati = null; - this.con = null; - } - - /** - * Funzione per inserire e verificare i dati (solo parametri), al fine di costruire pi� file - * report diversi tra loro - * - * @param nomeTemplate nome del/i file/s template del/i report/s - * @param nomiReport nome del/i report/s - * @param parametri HashMap dei parametri da passare al report - * @param numColonne - * @throws Exception 1.inesistenza template 2.numero colonne nei dati maggiore del numero indicato - * da numColonne 3. I vettori dei dati non sono della stessa lunghezza - */ - private void insertData(String nomeTemplate, String nomiReport, HashMap parametri, Integer exportType) - throws Exception { - - if (!(new File(this.templatePath + nomeTemplate + "." + this.templateExt).exists())) - throw new Exception("Il template " + nomeTemplate + " non esiste !"); - this.exportType = exportType; - this.nomeTemplate = nomeTemplate; - this.CSVDati = null; - this.nomiReport = nomiReport; - this.parameters = parametri; - } - - private void insertData(HashMap parametri, Integer exportType) throws Exception { - - this.exportType = exportType; - this.CSVDati = null; - this.parameters = parametri; - } - - /** - * Funzione per creare un report direttamente su un OutputStream con il formato desiderato - * - * @param out OutputStream in cui scrivere - * @param patternTipologie pattern tipo report da generare (doc,html,pdf,xls,etc...) - * @throws Exception - */ - public void scriviOutputStream(OutputStream out) throws Exception { - - JasperPrint jp = null; - if (exportType == EXPORT_TO_XLS) { - if (exporter == null || !(exporter instanceof JRXlsExporter)) - exporter = new JRXlsExporter(); - parameters.put("IS_IGNORE_PAGINATION", Boolean.TRUE); - - if (exporter.getParameter(JRXlsExporterParameter.JASPER_PRINT) == null) - exporter.setParameter(JRXlsExporterParameter.JASPER_PRINT, jp); - if (exporter.getParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET) == null) - exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE); - if (exporter.getParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND) == null) - exporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE); - } else if (exportType == EXPORT_TO_PDF) { - if (exporter == null || !(exporter instanceof JRPdfExporter)) - exporter = new JRPdfExporter(); - parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); - } else if (exportType == EXPORT_TO_PDFA_1A) { - if (exporter == null || !(exporter instanceof JRPdfExporter)) - exporter = new JRPdfExporter(); - parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); - exporter.setParameter(JRPdfExporterParameter.PDFA_CONFORMANCE, JRPdfExporterParameter.PDFA_CONFORMANCE_1A); - exporter.setParameter(JRPdfExporterParameter.PDFA_ICC_PROFILE_PATH, - HttpUtil.decodeURL(this.getClass().getResource(getProfile()).getPath())); - } else if (exportType == EXPORT_TO_PDFA_1B) { - if (exporter == null || !(exporter instanceof JRPdfExporter)) - exporter = new JRPdfExporter(); - parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); - exporter.setParameter(JRPdfExporterParameter.PDFA_CONFORMANCE, JRPdfExporterParameter.PDFA_CONFORMANCE_1B); - exporter.setParameter(JRPdfExporterParameter.PDFA_ICC_PROFILE_PATH, - HttpUtil.decodeURL(this.getClass().getResource(getProfile()).getPath())); - } else if (exportType == EXPORT_TO_DOC || exportType == EXPORT_TO_RTF) { - if (exporter == null || !(exporter instanceof JRRtfExporter)) - exporter = new JRRtfExporter(); - parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); - } else if (exportType == EXPORT_TO_DOCX) { - if (exporter == null || !(exporter instanceof JRDocxExporter)) - exporter = new JRDocxExporter(); - parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); - } - // creazione file HTML - else if (exportType == EXPORT_TO_HTML || exportType == EXPORT_TO_HTM) { - if (exporter == null || !(exporter instanceof JRHtmlExporter)) - exporter = new JRHtmlExporter(); - String htmlHeader = - "" + nomiReport + "" - + "" - + "" - + "" + ""; - String htmlFooter = ""; - parameters.put("IS_IGNORE_PAGINATION", Boolean.TRUE); - - if (exporter.getParameter(JRHtmlExporterParameter.HTML_HEADER) == null) - exporter.setParameter(JRHtmlExporterParameter.HTML_HEADER, htmlHeader); - if (exporter.getParameter(JRHtmlExporterParameter.HTML_FOOTER) == null) - exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, htmlFooter); - - } else if (exportType == EXPORT_TO_CSV) { - out.write(CSVDati.getCSVBytes(), 0, CSVDati.getCSVBytes().length); - } - - if (exportType != EXPORT_TO_CSV) { - if (CSVDati != null) { - datasource = getDataSource(CSVDati); - jp = CompileAndFillReport(nomeTemplate, parameters); - } else { - datasource = null; - jp = CompileAndFillReport(nomeTemplate, parameters); - } - if (exporter.getParameter(JRExporterParameter.JASPER_PRINT) == null) - exporter.setParameter(JRExporterParameter.JASPER_PRINT, jp); - if (exporter.getParameter(JRExporterParameter.OUTPUT_STREAM) == null) - exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out); - - exporter.exportReport(); - } - out.flush(); - - } - - /** - * Funzione per il riempimento e la compilazione del template Jasper - * - * @param ds DataSource sorgente dati pu� essere nullo in tal caso si tiene conto solo di - * parameters - * @param nomeTeplate Template Jasper da usare - * @param parameters Parametri da passare al template - * @return JasperPrint - * @throws JRException - */ - private JasperPrint CompileAndFillReport(String nomeTeplate, HashMap parameters) throws JRException { - - JasperDesign jd = null; - JasperReport jr = null; - JasperPrint jp = null; - if (classPath != null && !classPath.equals("")) - System.setProperty("jasper.reports.compile.class.path", classPath); - if (compileTempPath != null && !compileTempPath.equals("")) - System.setProperty("jasper.reports.compile.temp", compileTempPath); - try { - if (fileTemplate != null) { - jd = JRXmlLoader.load(fileTemplate); - } else { - jd = JRXmlLoader.load(templatePath + nomeTeplate + "." + templateExt); - } - jr = JasperCompileManager.compileReport(jd); - - if (datasource != null) - jp = JasperFillManager.fillReport(jr, parameters, datasource); - else if (con != null) - jp = JasperFillManager.fillReport(jr, parameters, con); - else - jp = JasperFillManager.fillReport(jr, parameters, new JREmptyDataSource()); - - } catch (JRException e) { - throw e; - } - return jp; - - } - - /** - * Funzione per settare il datasource del report. - * - * @param is inputstream dati csv - * @param cvsReport numero colonne del csv - * @return JRCsvDataSource - */ - private JRDataSource getDataSource(ReportInterface absReport) { - - return absReport.generaDataSource(); - } - - private String sistemaSlash(String path) { - - if (path.charAt(path.length() - 1) != '/' && path.charAt(path.length() - 1) != '\\') { - path += "/"; - } - return path; - } - - public JRExporter getExporter() { - - return exporter; - } - - public void setExporter(JRExporter exporter) { - - this.exporter = exporter; - } - - public void setProfile(String profile) { - - this.profile = profile; - } - - public String getProfile() { - - return profile; - } + super(); + this.templatePath = sistemaSlash(templatePath); + } + + public String getTemplatePath() { + + return templatePath; + } + + public void setTemplatePath(String templatePath) { + + this.templatePath = sistemaSlash(templatePath); + } + + public String getReportPath() { + + return reportPath; + } + + public void setReportPath(String reportPath) { + + this.reportPath = sistemaSlash(reportPath); + } + + public String getClassPath() { + + return classPath; + } + + public void setClassPath(String classPath) { + + this.classPath = sistemaSlash(classPath); + } + + public String getCompileTempPath() { + + return compileTempPath; + } + + public void setCompileTempPath(String compileTempPath) { + + this.compileTempPath = sistemaSlash(compileTempPath); + } + + public InputStream getFileTemplate() { + + return fileTemplate; + } + + public void setFileTemplate(FileInputStream fileTemplate) { + + this.fileTemplate = fileTemplate; + } + + /** + * Funzione per inserire e verificare i dati CSV, al fine di costruire un + * singolo file di report + * + * @param nomeTemplate + * nome del/i file/s template del/i report/s + * @param nomiReport + * nome del/i report/s + * @param con + * Connessione al database + * @param numColonne + * numero delle colonne dei dati CSV + * @param parametri + * HashMap dei parametri da passare al report + * @throws Exception + * 1.inesistenza template 2.numero colonne nei dati maggiore del + * numero indicato da numColonne 3. I vettori dei dati non sono + * della stessa lunghezza + */ + public void insertDataConnection(Connection con, HashMap parametri, Integer exportType) + throws Exception { + + insertData(parametri, exportType); + this.con = con; + this.CSVDati = null; + } + + public void insertDataConnection(String templateName, String reportName, Connection con, + HashMap parametri, Integer exportType) throws Exception { + + insertData(templateName, reportName, parametri, exportType); + this.con = con; + this.CSVDati = null; + } + + /** + * Funzione per inserire e verificare i dati CSV, al fine di costruire più + * file report, diversi tra loro + * + * @param nomeTemplate + * nome del/i file/s template del/i report/s + * @param nomiReport + * nome del/i report/s + * @param csvDati + * i dati in formato CSV (ogni riga deve terminare con \r\n, + * anche l'ultima) + * @param numColonne + * numero delle colonne dei dati CSV + * @param parametri + * HashMap dei parametri da passare al report + * @throws Exception + * 1.inesistenza template 2.numero colonne nei dati maggiore del + * numero indicato da numColonne 3. I vettori dei dati non sono + * della stessa lunghezza + */ + public void insertDataSource(String nomeTemplate, String nomiReport, ReportInterface csvDati, + HashMap parametri, Integer exportType) throws Exception { + + insertData(nomeTemplate, nomiReport, parametri, exportType); + this.CSVDati = csvDati; + this.con = null; + } + + public void insertDataSource(ReportInterface csvDati, HashMap parametri, + Integer exportType) throws Exception { + + insertData(parametri, exportType); + this.CSVDati = csvDati; + this.con = null; + } + + /** + * Funzione per inserire e verificare i dati CSV, al fine di costruire più + * file report, diversi tra loro + * + * @param nomeTemplate + * nome del/i file/s template del/i report/s + * @param nomiReport + * nome del/i report/s + * @param csvDati + * i dati in formato CSV (ogni riga deve terminare con \r\n, + * anche l'ultima) + * @param numColonne + * numero delle colonne dei dati CSV + * @param parametri + * HashMap dei parametri da passare al report + * @throws Exception + * 1.inesistenza template 2.numero colonne nei dati maggiore del + * numero indicato da numColonne 3. I vettori dei dati non sono + * della stessa lunghezza + */ + public void insertSimpleData(String nomeTemplate, String nomiReport, HashMap parametri, + Integer exportType) throws Exception { + + insertData(nomeTemplate, nomiReport, parametri, exportType); + this.CSVDati = null; + this.con = null; + } + + public void insertSimpleData(HashMap parametri, Integer exportType) throws Exception { + + insertData(parametri, exportType); + this.CSVDati = null; + this.con = null; + } + + /** + * Funzione per inserire e verificare i dati (solo parametri), al fine di + * costruire più file report diversi tra loro + * + * @param nomeTemplate + * nome del/i file/s template del/i report/s + * @param nomiReport + * nome del/i report/s + * @param parametri + * HashMap dei parametri da passare al report + * @param numColonne + * @throws Exception + * 1.inesistenza template 2.numero colonne nei dati maggiore del + * numero indicato da numColonne 3. I vettori dei dati non sono + * della stessa lunghezza + */ + private void insertData(String nomeTemplate, String nomiReport, HashMap parametri, + Integer exportType) throws Exception { + + if (!(new File(this.templatePath + nomeTemplate + "." + this.templateExt).exists())) + throw new Exception("Il template " + nomeTemplate + " non esiste !"); + this.exportType = exportType; + this.nomeTemplate = nomeTemplate; + this.CSVDati = null; + this.nomiReport = nomiReport; + this.parameters = parametri; + } + + private void insertData(HashMap parametri, Integer exportType) throws Exception { + + this.exportType = exportType; + this.CSVDati = null; + this.parameters = parametri; + } + + /** + * Funzione per creare un report direttamente su un OutputStream con il + * formato desiderato + * + * @param out + * OutputStream in cui scrivere + * @param patternTipologie + * pattern tipo report da generare (doc,html,pdf,xls,etc...) + * @throws Exception + */ + public void scriviOutputStream(OutputStream out) throws Exception { + + JasperPrint jp = null; + if (exportType == EXPORT_TO_XLS) { + if (exporter == null || !(exporter instanceof JRXlsExporter)) + exporter = new JRXlsExporter(); + parameters.put("IS_IGNORE_PAGINATION", Boolean.TRUE); + + if (exporter.getParameter(JRXlsExporterParameter.JASPER_PRINT) == null) + exporter.setParameter(JRXlsExporterParameter.JASPER_PRINT, jp); + if (exporter.getParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET) == null) + exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE); + if (exporter.getParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND) == null) + exporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE); + } else if (exportType == EXPORT_TO_PDF) { + if (exporter == null || !(exporter instanceof JRPdfExporter)) + exporter = new JRPdfExporter(); + parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); + } else if (exportType == EXPORT_TO_PDFA_1A) { + if (exporter == null || !(exporter instanceof JRPdfExporter)) + exporter = new JRPdfExporter(); + parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); + exporter.setParameter(JRPdfExporterParameter.PDFA_CONFORMANCE, + JRPdfExporterParameter.PDFA_CONFORMANCE_1A); + exporter.setParameter(JRPdfExporterParameter.PDFA_ICC_PROFILE_PATH, + HttpUtil.decodeURL(this.getClass().getResource(getProfile()).getPath())); + } else if (exportType == EXPORT_TO_PDFA_1B) { + if (exporter == null || !(exporter instanceof JRPdfExporter)) + exporter = new JRPdfExporter(); + parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); + exporter.setParameter(JRPdfExporterParameter.PDFA_CONFORMANCE, + JRPdfExporterParameter.PDFA_CONFORMANCE_1B); + exporter.setParameter(JRPdfExporterParameter.PDFA_ICC_PROFILE_PATH, + HttpUtil.decodeURL(this.getClass().getResource(getProfile()).getPath())); + } else if (exportType == EXPORT_TO_DOC || exportType == EXPORT_TO_RTF) { + if (exporter == null || !(exporter instanceof JRRtfExporter)) + exporter = new JRRtfExporter(); + parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); + } else if (exportType == EXPORT_TO_DOCX) { + if (exporter == null || !(exporter instanceof JRDocxExporter)) + exporter = new JRDocxExporter(); + parameters.put("IS_IGNORE_PAGINATION", Boolean.FALSE); + } + // creazione file HTML + else if (exportType == EXPORT_TO_HTML || exportType == EXPORT_TO_HTM) { + if (exporter == null || !(exporter instanceof JRHtmlExporter)) + exporter = new JRHtmlExporter(); + String htmlHeader = "" + nomiReport + "" + + "" + + "" + "" + + ""; + String htmlFooter = ""; + parameters.put("IS_IGNORE_PAGINATION", Boolean.TRUE); + + if (exporter.getParameter(JRHtmlExporterParameter.HTML_HEADER) == null) + exporter.setParameter(JRHtmlExporterParameter.HTML_HEADER, htmlHeader); + if (exporter.getParameter(JRHtmlExporterParameter.HTML_FOOTER) == null) + exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, htmlFooter); + + } else if (exportType == EXPORT_TO_CSV) { + out.write(CSVDati.getCSVBytes(), 0, CSVDati.getCSVBytes().length); + } + + if (exportType != EXPORT_TO_CSV) { + if (CSVDati != null) { + datasource = getDataSource(CSVDati); + jp = CompileAndFillReport(nomeTemplate, parameters); + } else { + datasource = null; + jp = CompileAndFillReport(nomeTemplate, parameters); + } + if (exporter.getParameter(JRExporterParameter.JASPER_PRINT) == null) + exporter.setParameter(JRExporterParameter.JASPER_PRINT, jp); + if (exporter.getParameter(JRExporterParameter.OUTPUT_STREAM) == null) + exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out); + + exporter.exportReport(); + } + out.flush(); + + } + + /** + * Funzione per il riempimento e la compilazione del template Jasper + * + * @param ds + * DataSource sorgente dati può essere nullo in tal caso si tiene + * conto solo di parameters + * @param nomeTeplate + * Template Jasper da usare + * @param parameters + * Parametri da passare al template + * @return JasperPrint + * @throws JRException + */ + private JasperPrint CompileAndFillReport(String nomeTeplate, HashMap parameters) + throws JRException { + + JasperDesign jd = null; + JasperReport jr = null; + JasperPrint jp = null; + if (classPath != null && !classPath.equals("")) + System.setProperty("jasper.reports.compile.class.path", classPath); + if (compileTempPath != null && !compileTempPath.equals("")) + System.setProperty("jasper.reports.compile.temp", compileTempPath); + try { + if (fileTemplate != null) { + jd = JRXmlLoader.load(fileTemplate); + } else { + jd = JRXmlLoader.load(templatePath + nomeTeplate + "." + templateExt); + } + jr = JasperCompileManager.compileReport(jd); + + if (datasource != null) + jp = JasperFillManager.fillReport(jr, parameters, datasource); + else if (con != null) + jp = JasperFillManager.fillReport(jr, parameters, con); + else + jp = JasperFillManager.fillReport(jr, parameters, new JREmptyDataSource()); + + } catch (JRException e) { + throw e; + } + return jp; + } + + /** + * Funzione per settare il datasource del report. + * + * @param is + * inputstream dati csv + * @param cvsReport + * numero colonne del csv + * @return JRCsvDataSource + */ + private JRDataSource getDataSource(ReportInterface absReport) { + return absReport.generaDataSource(); + } + + private String sistemaSlash(String path) { + if (path.charAt(path.length() - 1) != '/' && path.charAt(path.length() - 1) != '\\') { + path += "/"; + } + return path; + } + + public JRExporter getExporter() { + return exporter; + } + + public void setExporter(JRExporter exporter) { + this.exporter = exporter; + } + + public void setProfile(String profile) { + this.profile = profile; + } + + public String getProfile() { + return profile; + } } 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 153051e8..f43d7227 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=24 - build.date=1601549245732 + build.number=28 + build.date=1603814144806 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml index c2fc79d0..89aa194f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/ivy.xml @@ -14,5 +14,11 @@ + + + + + + \ No newline at end of file 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 1c398956..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 @@ -21fa9f8b1b5d0cad29c66d9d411fb7a4 +3983ec64257638ed926baedf51077cc9