|
|
@ -16,8 +16,11 @@ import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; |
|
|
|
import it.tref.liferay.portos.bo.service.permission.IntPraticaPermission; |
|
|
|
import it.tref.liferay.portos.bo.service.permission.IntPraticaPermission; |
|
|
|
|
|
|
|
import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean; |
|
|
|
|
|
|
|
import it.tref.liferay.portos.bo.shared.bean.ParereGeologoBean; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.ActionKeys; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.ActionKeys; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.Constants; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.Constants; |
|
|
|
|
|
|
|
import it.tref.liferay.portos.bo.shared.util.UnitaOperativeUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.AvvisoUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.AvvisoUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.MailUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.MailUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.WorkflowUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.WorkflowUtil; |
|
|
@ -25,6 +28,8 @@ import it.tref.liferay.portos.bo.util.WorkflowUtil; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.Comparator; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Locale; |
|
|
|
import java.util.Locale; |
|
|
@ -62,13 +67,17 @@ import com.liferay.portal.kernel.workflow.WorkflowInstance; |
|
|
|
import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; |
|
|
|
import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; |
|
|
|
import com.liferay.portal.kernel.workflow.WorkflowTask; |
|
|
|
import com.liferay.portal.kernel.workflow.WorkflowTask; |
|
|
|
import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; |
|
|
|
import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; |
|
|
|
|
|
|
|
import com.liferay.portal.model.Organization; |
|
|
|
import com.liferay.portal.model.Role; |
|
|
|
import com.liferay.portal.model.Role; |
|
|
|
import com.liferay.portal.model.User; |
|
|
|
import com.liferay.portal.model.User; |
|
|
|
|
|
|
|
import com.liferay.portal.model.UserGroupRole; |
|
|
|
import com.liferay.portal.model.WorkflowInstanceLink; |
|
|
|
import com.liferay.portal.model.WorkflowInstanceLink; |
|
|
|
import com.liferay.portal.security.permission.PermissionThreadLocal; |
|
|
|
import com.liferay.portal.security.permission.PermissionThreadLocal; |
|
|
|
|
|
|
|
import com.liferay.portal.service.OrganizationLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.RoleLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.RoleLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.ServiceContext; |
|
|
|
import com.liferay.portal.service.ServiceContext; |
|
|
|
import com.liferay.portal.service.ServiceContextFactory; |
|
|
|
import com.liferay.portal.service.ServiceContextFactory; |
|
|
|
|
|
|
|
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.UserLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.UserLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; |
|
|
|
import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; |
|
|
|
import com.liferay.portal.theme.ThemeDisplay; |
|
|
|
import com.liferay.portal.theme.ThemeDisplay; |
|
|
@ -97,6 +106,11 @@ public class GestioneAttivitaPortlet extends MVCPortlet { |
|
|
|
String comune = ParamUtil.getString(actionRequest, "comune"); |
|
|
|
String comune = ParamUtil.getString(actionRequest, "comune"); |
|
|
|
String tipoAttivita = ParamUtil.getString(actionRequest, "tipoAttivita"); |
|
|
|
String tipoAttivita = ParamUtil.getString(actionRequest, "tipoAttivita"); |
|
|
|
String tipoProcedura = ParamUtil.getString(actionRequest, "tipoProcedura"); |
|
|
|
String tipoProcedura = ParamUtil.getString(actionRequest, "tipoProcedura"); |
|
|
|
|
|
|
|
String unitaOperativa = ParamUtil.getString(actionRequest, "unitaOperativa"); |
|
|
|
|
|
|
|
String provincia = ParamUtil.getString(actionRequest, "provincia"); |
|
|
|
|
|
|
|
String geologi = ParamUtil.getString(actionRequest, "geologi"); |
|
|
|
|
|
|
|
String parereGeologo = ParamUtil.getString(actionRequest, "parereGeologo"); |
|
|
|
|
|
|
|
|
|
|
|
actionResponse.setRenderParameter("tabs1", tabs1); |
|
|
|
actionResponse.setRenderParameter("tabs1", tabs1); |
|
|
|
actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); |
|
|
|
actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); |
|
|
|
actionResponse.setRenderParameter("protocollo", protocollo); |
|
|
|
actionResponse.setRenderParameter("protocollo", protocollo); |
|
|
@ -134,6 +148,10 @@ public class GestioneAttivitaPortlet extends MVCPortlet { |
|
|
|
actionResponse.setRenderParameter("comune", comune); |
|
|
|
actionResponse.setRenderParameter("comune", comune); |
|
|
|
actionResponse.setRenderParameter("tipoAttivita", tipoAttivita); |
|
|
|
actionResponse.setRenderParameter("tipoAttivita", tipoAttivita); |
|
|
|
actionResponse.setRenderParameter("tipoProcedura", tipoProcedura); |
|
|
|
actionResponse.setRenderParameter("tipoProcedura", tipoProcedura); |
|
|
|
|
|
|
|
actionResponse.setRenderParameter("unitaOperativa", unitaOperativa); |
|
|
|
|
|
|
|
actionResponse.setRenderParameter("provincia", provincia); |
|
|
|
|
|
|
|
actionResponse.setRenderParameter("geologi", geologi); |
|
|
|
|
|
|
|
actionResponse.setRenderParameter("parereGeologo", parereGeologo); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void cambioIstruttore(ActionRequest actionRequest, ActionResponse actionResponse) { |
|
|
|
public void cambioIstruttore(ActionRequest actionRequest, ActionResponse actionResponse) { |
|
|
@ -253,10 +271,11 @@ public class GestioneAttivitaPortlet extends MVCPortlet { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, |
|
|
|
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, |
|
|
|
PortletException { |
|
|
|
PortletException { |
|
|
|
|
|
|
|
|
|
|
|
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); |
|
|
|
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); |
|
|
|
|
|
|
|
|
|
|
|
Locale locale = themeDisplay.getLocale(); |
|
|
|
Locale locale = themeDisplay.getLocale(); |
|
|
|
User user = themeDisplay.getUser(); |
|
|
|
User user = themeDisplay.getUser(); |
|
|
|
String cmd = ParamUtil.getString(resourceRequest, Constants.CMD); |
|
|
|
String cmd = ParamUtil.getString(resourceRequest, Constants.CMD); |
|
|
@ -273,39 +292,183 @@ public class GestioneAttivitaPortlet extends MVCPortlet { |
|
|
|
csv = exportSearch(locale, resourceRequest, user, cmd); |
|
|
|
csv = exportSearch(locale, resourceRequest, user, cmd); |
|
|
|
} |
|
|
|
} |
|
|
|
// ADT BUG BO ID= 1 SEZIONE ATTIVITÀ
|
|
|
|
// ADT BUG BO ID= 1 SEZIONE ATTIVITÀ
|
|
|
|
if ("comuniForUfficio".equals(id)) { |
|
|
|
|
|
|
|
String ufficio = ParamUtil.getString(resourceRequest, "ufficioId"); |
|
|
|
try{ |
|
|
|
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); |
|
|
|
if ("comuniForUfficio".equals(id)) { |
|
|
|
List<Comune> comuni; |
|
|
|
|
|
|
|
if (Validator.isNotNull(ufficio) && !ufficio.equals("0")) { |
|
|
|
String ufficio = ParamUtil.getString(resourceRequest, "ufficioId"); |
|
|
|
try { |
|
|
|
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); |
|
|
|
if (!ufficio.equals("-1")) { |
|
|
|
List<Comune> comuni; |
|
|
|
long ufficioId = Long.parseLong(ufficio); |
|
|
|
if (Validator.isNotNull(ufficio) && !ufficio.equals("0")) { |
|
|
|
comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(user.getUserId(), |
|
|
|
try { |
|
|
|
ufficioId); |
|
|
|
if (!ufficio.equals("-1")) { |
|
|
|
for (Comune comune : comuni) { |
|
|
|
long ufficioId = Long.parseLong(ufficio); |
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(user.getUserId(), |
|
|
|
jsonObject.put("comuneId", comune.getComuneId()); |
|
|
|
ufficioId); |
|
|
|
jsonObject.put("descLong", comune.getDenominazione()); |
|
|
|
for (Comune comune : comuni) { |
|
|
|
|
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
jsonArray.put(jsonObject); |
|
|
|
jsonObject.put("comuneId", comune.getComuneId()); |
|
|
|
|
|
|
|
jsonObject.put("descLong", comune.getDenominazione()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jsonArray.put(jsonObject); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserId(user.getUserId()); |
|
|
|
|
|
|
|
for (Comune comune : comuni) { |
|
|
|
|
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
|
|
|
|
jsonObject.put("comuneId", comune.getComuneId()); |
|
|
|
|
|
|
|
jsonObject.put("descLong", comune.getDenominazione()); |
|
|
|
|
|
|
|
jsonArray.put(jsonObject); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
} |
|
|
|
} |
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
} catch (Exception e) { |
|
|
|
} else { |
|
|
|
e.printStackTrace(); |
|
|
|
comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserId(user.getUserId()); |
|
|
|
} |
|
|
|
for (Comune comune : comuni) { |
|
|
|
} |
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
}else if ("province".equals(id)) { |
|
|
|
jsonObject.put("comuneId", comune.getComuneId()); |
|
|
|
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); |
|
|
|
jsonObject.put("descLong", comune.getDenominazione()); |
|
|
|
List<String> province = TerritorioLocalServiceUtil.getActiveProvince(); |
|
|
|
jsonArray.put(jsonObject); |
|
|
|
for (String codiceProvincia : province) { |
|
|
|
|
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
|
|
|
|
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), codiceProvincia); |
|
|
|
|
|
|
|
jsonObject.put("provinciaId", provincia.getCodiceProvincia()); |
|
|
|
|
|
|
|
jsonObject.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia()); |
|
|
|
|
|
|
|
jsonArray.put(jsonObject); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
|
|
|
|
}else if ("unitaOperative".equals(id)) { |
|
|
|
|
|
|
|
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(int i=1; i<11; i++) { |
|
|
|
|
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
|
|
|
|
jsonObject.put("uoId", i); |
|
|
|
|
|
|
|
jsonObject.put("descLong", i); |
|
|
|
|
|
|
|
jsonArray.put(jsonObject); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
|
|
|
|
}else if ("comuni".equals(id)) { |
|
|
|
|
|
|
|
String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId"); |
|
|
|
|
|
|
|
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); |
|
|
|
|
|
|
|
if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) { |
|
|
|
|
|
|
|
List<Long> comuniIds = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia(provinciaId); |
|
|
|
|
|
|
|
List<Comune> comumeList = new ArrayList<Comune>(); |
|
|
|
|
|
|
|
for (long comuneId : comuniIds) { |
|
|
|
|
|
|
|
Comune comune = ComuneLocalServiceUtil.getComune(comuneId); |
|
|
|
|
|
|
|
comumeList.add(comune); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Collections.sort(comumeList, new Comparator<Comune>() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public int compare(Comune o1, Comune o2) { |
|
|
|
|
|
|
|
return o1.getDenominazione().compareTo(o2.getDenominazione()); |
|
|
|
} |
|
|
|
} |
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
}); |
|
|
|
|
|
|
|
for (Comune comune : comumeList) { |
|
|
|
|
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
|
|
|
|
jsonObject.put("comuneId", comune.getComuneId()); |
|
|
|
|
|
|
|
jsonObject.put("descLong", comune.getDenominazione()); |
|
|
|
|
|
|
|
jsonArray.put(jsonObject); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
|
|
|
|
}else if ("istruttore".equals(id)) { |
|
|
|
|
|
|
|
Integer uoId = ParamUtil.getInteger(resourceRequest, "uoId"); |
|
|
|
|
|
|
|
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); |
|
|
|
|
|
|
|
if (Validator.isNotNull(uoId) && !uoId.equals("-1")) { |
|
|
|
|
|
|
|
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); |
|
|
|
|
|
|
|
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(Organization org : organizationList) { |
|
|
|
|
|
|
|
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore"); |
|
|
|
|
|
|
|
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( |
|
|
|
|
|
|
|
org.getGroupId(), role.getRoleId()); |
|
|
|
|
|
|
|
for (UserGroupRole userGroupRole : istruttori) { |
|
|
|
|
|
|
|
User istruttore = userGroupRole.getUser(); |
|
|
|
|
|
|
|
List<Integer> unitaOperativeIstruttore = UnitaOperativeUtil.getUnitaOperative(istruttore); |
|
|
|
|
|
|
|
if(unitaOperativeIstruttore.contains(uoId)){ |
|
|
|
|
|
|
|
if (tecniciIstruttori.isEmpty()) { |
|
|
|
|
|
|
|
tecniciIstruttori.add(userGroupRole); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
boolean isPresent = false; |
|
|
|
|
|
|
|
for(UserGroupRole tecnico : tecniciIstruttori) { |
|
|
|
|
|
|
|
if (tecnico.getUserId() == userGroupRole.getUserId()) { |
|
|
|
|
|
|
|
isPresent = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(!isPresent){ |
|
|
|
|
|
|
|
tecniciIstruttori.add(userGroupRole); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>(); |
|
|
|
|
|
|
|
for (UserGroupRole tecnico : tecniciIstruttori) { |
|
|
|
|
|
|
|
IstruttoreBean istruttore = new IstruttoreBean(); |
|
|
|
|
|
|
|
istruttore.setIdIstruttore(tecnico.getUserId()); |
|
|
|
|
|
|
|
istruttore.setDenominazione(tecnico.getUser().getFullName()); |
|
|
|
|
|
|
|
tecniciIstruttoriSorted.add(istruttore); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Collections.sort(tecniciIstruttoriSorted); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (IstruttoreBean istruttore : tecniciIstruttoriSorted) { |
|
|
|
|
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
|
|
|
|
jsonObject.put("istruttoreId", istruttore.getIdIstruttore()); |
|
|
|
|
|
|
|
jsonObject.put("descLong", istruttore.getDenominazione()); |
|
|
|
|
|
|
|
jsonArray.put(jsonObject); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if ("geologo".equals(id)) { |
|
|
|
|
|
|
|
JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); |
|
|
|
|
|
|
|
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); |
|
|
|
|
|
|
|
List<User> geologi = new ArrayList<User>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(Organization org : organizationList) { |
|
|
|
|
|
|
|
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_geologo"); |
|
|
|
|
|
|
|
List<User> geologiUsers = UserLocalServiceUtil.getRoleUsers(role.getRoleId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (User userGroupRole : geologiUsers) { |
|
|
|
|
|
|
|
if (geologi.isEmpty()) { |
|
|
|
|
|
|
|
geologi.add(userGroupRole); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
boolean isPresent = false; |
|
|
|
|
|
|
|
for(User geo : geologi) { |
|
|
|
|
|
|
|
if (geo.getUserId() == userGroupRole.getUserId()) { |
|
|
|
|
|
|
|
isPresent = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(!isPresent){ |
|
|
|
|
|
|
|
geologi.add(userGroupRole); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (User geo : geologi) { |
|
|
|
|
|
|
|
JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); |
|
|
|
|
|
|
|
jsonObject.put("geologoId", geo.getUserId()); |
|
|
|
|
|
|
|
jsonObject.put("descLong", geo.getFullName()); |
|
|
|
|
|
|
|
jsonArray.put(jsonObject); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
writeJSON(resourceRequest, resourceResponse, jsonArray); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}catch (Exception e) { |
|
|
|
|
|
|
|
_log.error(e, e); |
|
|
|
|
|
|
|
throw new IOException(e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ServletResponseUtil.sendFile(request, response, "export_pratiche.csv", csv.getBytes(StringPool.UTF8), |
|
|
|
ServletResponseUtil.sendFile(request, response, "export_pratiche.csv", csv.getBytes(StringPool.UTF8), |
|
|
|
ContentTypes.TEXT_CSV_UTF8); |
|
|
|
ContentTypes.TEXT_CSV_UTF8); |
|
|
|
} |
|
|
|
} |
|
|
|