diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml
index 4cedd60a..66fc6699 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml
@@ -146,7 +146,7 @@
paesaggistica-organigramma
/icon.png
configuration
- 1.9
+ 2.5
/css/main.css?v=1
/js/main.js?v=2
paesaggistica-organigramma-portlet
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml
index cc7a76ce..31dc6b78 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml
@@ -337,6 +337,7 @@
text/html
view
+ content.Language
Organigramma
Organigramma
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
index b9cdf2a7..5e0f9aa5 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
@@ -1346,4 +1346,4 @@ mappe-openstreetmap = OpenStreetmap
#tipo_procedura_Q19 = 9) Condono Edilizio
sanatoria-edilizia = Sanatoria edilizia
-intervento-voce-p7 = L.R. 5/2019, art. 3, allegato B: intervento alla voce B
\ No newline at end of file
+intervento-voce-p7 = L.R. 5/2019, art. 3, allegato B: intervento alla voce B
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 fd6f2898..333470d0 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=3357
- build.date=1631548540307
+ build.number=3358
+ build.date=1631629487673
build.auto.upgrade=true
##
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/organigramma/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/organigramma/view.jsp
index 35629115..f993d5fe 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/organigramma/view.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/organigramma/view.jsp
@@ -1,3 +1,8 @@
+<%@page import="com.liferay.portal.kernel.dao.orm.OrderFactoryUtil"%>
+<%@page import="com.liferay.portal.model.UserGroupRole"%>
+<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%>
+<%@page import="com.liferay.portal.model.Role"%>
+<%@page import="javax.portlet.PortletURL"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.UnitaOperativeUtil"%>
<%@page import="com.liferay.portal.model.User"%>
@@ -7,10 +12,12 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/init.jsp"%>
<%
+PortletURL iteratorURL = liferayPortletResponse.createRenderURL();
long organizationId = ParamUtil.getLong(request, "organization", 0);
Organization organization = null;
if (organizationId != 0) {
organization = OrganizationLocalServiceUtil.fetchOrganization(organizationId);
+ iteratorURL.setParameter("organization", String.valueOf(organizationId));
}
%>
@@ -32,19 +39,31 @@ if (organizationId != 0) {
-Risultati
-
+
+ results='<%= UserLocalServiceUtil.getOrganizationUsers(organizationId, searchContainer.getStart(),
+ searchContainer.getEnd(), OrderByComparatorFactoryUtil.create("user_", "LOWER(lastName)", true,
+ "firstName", true)) %>' />
-
-
-
-
+
+
+
+
+ <%
+ boolean first = true;
+ for (UserGroupRole groupRole : UserGroupRoleLocalServiceUtil.getUserGroupRoles(orgUser.getUserId())) {
+ if (first) {
+ first = false;
+ } else {
+ out.print(StringPool.COMMA_AND_SPACE);
+ }
+ out.print(groupRole.getRole().getName());
+ }
+ %>
+
-/Risultati