diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
index d771acd7..fe418ea6 100644
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
index faa69f86..3583f7a0 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
@@ -57,6 +57,7 @@
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java
index 3df3c946..7e28f949 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java
@@ -92,6 +92,7 @@ public class ComuneClp extends BaseModelImpl implements Comune {
attributes.put("disabilitato", getDisabilitato());
attributes.put("mailSuap", getMailSuap());
attributes.put("mailSue", getMailSue());
+ attributes.put("praticaOspedali", getPraticaOspedali());
return attributes;
}
@@ -199,6 +200,12 @@ public class ComuneClp extends BaseModelImpl implements Comune {
if (mailSue != null) {
setMailSue(mailSue);
}
+
+ Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali");
+
+ if (praticaOspedali != null) {
+ setPraticaOspedali(praticaOspedali);
+ }
}
@Override
@@ -619,6 +626,35 @@ public class ComuneClp extends BaseModelImpl implements Comune {
}
}
+ @Override
+ public boolean getPraticaOspedali() {
+ return _praticaOspedali;
+ }
+
+ @Override
+ public boolean isPraticaOspedali() {
+ return _praticaOspedali;
+ }
+
+ @Override
+ public void setPraticaOspedali(boolean praticaOspedali) {
+ _praticaOspedali = praticaOspedali;
+
+ if (_comuneRemoteModel != null) {
+ try {
+ Class> clazz = _comuneRemoteModel.getClass();
+
+ Method method = clazz.getMethod("setPraticaOspedali",
+ boolean.class);
+
+ method.invoke(_comuneRemoteModel, praticaOspedali);
+ }
+ catch (Exception e) {
+ throw new UnsupportedOperationException(e);
+ }
+ }
+ }
+
@Override
public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId(
@@ -711,6 +747,7 @@ public class ComuneClp extends BaseModelImpl implements Comune {
clone.setDisabilitato(getDisabilitato());
clone.setMailSuap(getMailSuap());
clone.setMailSue(getMailSue());
+ clone.setPraticaOspedali(getPraticaOspedali());
return clone;
}
@@ -761,7 +798,7 @@ public class ComuneClp extends BaseModelImpl implements Comune {
@Override
public String toString() {
- StringBundler sb = new StringBundler(35);
+ StringBundler sb = new StringBundler(37);
sb.append("{uuid=");
sb.append(getUuid());
@@ -797,6 +834,8 @@ public class ComuneClp extends BaseModelImpl implements Comune {
sb.append(getMailSuap());
sb.append(", mailSue=");
sb.append(getMailSue());
+ sb.append(", praticaOspedali=");
+ sb.append(getPraticaOspedali());
sb.append("}");
return sb.toString();
@@ -804,7 +843,7 @@ public class ComuneClp extends BaseModelImpl implements Comune {
@Override
public String toXmlString() {
- StringBundler sb = new StringBundler(55);
+ StringBundler sb = new StringBundler(58);
sb.append("");
sb.append("it.tref.liferay.portos.bo.model.Comune");
@@ -878,6 +917,10 @@ public class ComuneClp extends BaseModelImpl implements Comune {
"mailSue");
+ sb.append(
+ "praticaOspedali");
sb.append("");
@@ -902,6 +945,7 @@ public class ComuneClp extends BaseModelImpl implements Comune {
private boolean _disabilitato;
private String _mailSuap;
private String _mailSue;
+ private boolean _praticaOspedali;
private BaseModel> _comuneRemoteModel;
private Class> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java
index 7c2de1fc..d9b5d446 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java
@@ -358,6 +358,27 @@ public interface ComuneModel extends BaseModel, StagedAuditedModel {
*/
public void setMailSue(String mailSue);
+ /**
+ * Returns the pratica ospedali of this comune.
+ *
+ * @return the pratica ospedali of this comune
+ */
+ public boolean getPraticaOspedali();
+
+ /**
+ * Returns true
if this comune is pratica ospedali.
+ *
+ * @return true
if this comune is pratica ospedali; false
otherwise
+ */
+ public boolean isPraticaOspedali();
+
+ /**
+ * Sets whether this comune is pratica ospedali.
+ *
+ * @param praticaOspedali the pratica ospedali of this comune
+ */
+ public void setPraticaOspedali(boolean praticaOspedali);
+
@Override
public boolean isNew();
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java
index 25267fd6..3682bcb0 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java
@@ -48,6 +48,7 @@ public class ComuneSoap implements Serializable {
soapModel.setDisabilitato(model.getDisabilitato());
soapModel.setMailSuap(model.getMailSuap());
soapModel.setMailSue(model.getMailSue());
+ soapModel.setPraticaOspedali(model.getPraticaOspedali());
return soapModel;
}
@@ -248,6 +249,18 @@ public class ComuneSoap implements Serializable {
_mailSue = mailSue;
}
+ public boolean getPraticaOspedali() {
+ return _praticaOspedali;
+ }
+
+ public boolean isPraticaOspedali() {
+ return _praticaOspedali;
+ }
+
+ public void setPraticaOspedali(boolean praticaOspedali) {
+ _praticaOspedali = praticaOspedali;
+ }
+
private String _uuid;
private long _comuneId;
private long _companyId;
@@ -265,4 +278,5 @@ public class ComuneSoap implements Serializable {
private boolean _disabilitato;
private String _mailSuap;
private String _mailSue;
+ private boolean _praticaOspedali;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java
index 1606ecd1..5ec5693d 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java
@@ -67,6 +67,7 @@ public class ComuneWrapper implements Comune, ModelWrapper {
attributes.put("disabilitato", getDisabilitato());
attributes.put("mailSuap", getMailSuap());
attributes.put("mailSue", getMailSue());
+ attributes.put("praticaOspedali", getPraticaOspedali());
return attributes;
}
@@ -174,6 +175,12 @@ public class ComuneWrapper implements Comune, ModelWrapper {
if (mailSue != null) {
setMailSue(mailSue);
}
+
+ Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali");
+
+ if (praticaOspedali != null) {
+ setPraticaOspedali(praticaOspedali);
+ }
}
/**
@@ -588,6 +595,36 @@ public class ComuneWrapper implements Comune, ModelWrapper {
_comune.setMailSue(mailSue);
}
+ /**
+ * Returns the pratica ospedali of this comune.
+ *
+ * @return the pratica ospedali of this comune
+ */
+ @Override
+ public boolean getPraticaOspedali() {
+ return _comune.getPraticaOspedali();
+ }
+
+ /**
+ * Returns true
if this comune is pratica ospedali.
+ *
+ * @return true
if this comune is pratica ospedali; false
otherwise
+ */
+ @Override
+ public boolean isPraticaOspedali() {
+ return _comune.isPraticaOspedali();
+ }
+
+ /**
+ * Sets whether this comune is pratica ospedali.
+ *
+ * @param praticaOspedali the pratica ospedali of this comune
+ */
+ @Override
+ public void setPraticaOspedali(boolean praticaOspedali) {
+ _comune.setPraticaOspedali(praticaOspedali);
+ }
+
@Override
public boolean isNew() {
return _comune.isNew();
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java
index a1b51a62..7b1dddd1 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java
@@ -283,6 +283,7 @@ public interface ComuneLocalService extends BaseLocalService,
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@@ -292,6 +293,7 @@ public interface ComuneLocalService extends BaseLocalService,
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@@ -355,11 +357,16 @@ public interface ComuneLocalService extends BaseLocalService,
long companyId)
throws com.liferay.portal.kernel.exception.SystemException;
+ public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera(
+ long comuneId, boolean isPraticaOspedaliera,
+ com.liferay.portal.service.ServiceContext serviceContext);
+
public it.tref.liferay.portos.bo.model.Comune updateComune(long userId,
long comuneId, java.lang.String codiceProvincia,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@@ -369,6 +376,7 @@ public interface ComuneLocalService extends BaseLocalService,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java
index b77cecca..e276cad9 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java
@@ -128,7 +128,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"boolean", "boolean", "java.lang.String", "java.lang.String",
- "com.liferay.portal.service.ServiceContext"
+ "boolean", "com.liferay.portal.service.ServiceContext"
};
_methodName22 = "addComune";
@@ -136,7 +136,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
_methodParameterTypes22 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
- "boolean", "java.lang.String", "java.lang.String",
+ "boolean", "java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
@@ -205,31 +205,37 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
_methodParameterTypes36 = new String[] { "long" };
- _methodName37 = "updateComune";
+ _methodName37 = "setPraticaOspedaliera";
_methodParameterTypes37 = new String[] {
+ "long", "boolean", "com.liferay.portal.service.ServiceContext"
+ };
+
+ _methodName38 = "updateComune";
+
+ _methodParameterTypes38 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean", "boolean",
- "java.lang.String", "java.lang.String",
+ "java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
- _methodName38 = "updateComune";
+ _methodName39 = "updateComune";
- _methodParameterTypes38 = new String[] {
+ _methodParameterTypes39 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean",
- "java.lang.String", "java.lang.String",
+ "java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
- _methodName39 = "getComuniForOrganizationByUserId";
+ _methodName40 = "getComuniForOrganizationByUserId";
- _methodParameterTypes39 = new String[] { "long" };
+ _methodParameterTypes40 = new String[] { "long" };
- _methodName40 = "getComuniForOrganizationByUserIdUfficioId";
+ _methodName41 = "getComuniForOrganizationByUserIdUfficioId";
- _methodParameterTypes40 = new String[] { "long", "long" };
+ _methodParameterTypes41 = new String[] { "long", "long" };
}
@Override
@@ -849,6 +855,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
@@ -878,6 +885,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
ClpSerializer.translateInput(mailSue),
+ praticaOspedaliera,
+
ClpSerializer.translateInput(serviceContext)
});
}
@@ -910,6 +919,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
@@ -937,6 +947,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
ClpSerializer.translateInput(mailSue),
+ praticaOspedaliera,
+
ClpSerializer.translateInput(serviceContext)
});
}
@@ -1427,20 +1439,53 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
return (java.util.List)ClpSerializer.translateOutput(returnObj);
}
+ @Override
+ public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera(
+ long comuneId, boolean isPraticaOspedaliera,
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName37,
+ _methodParameterTypes37,
+ new Object[] {
+ comuneId,
+
+ isPraticaOspedaliera,
+
+ ClpSerializer.translateInput(serviceContext)
+ });
+ }
+ catch (Throwable t) {
+ t = ClpSerializer.translateThrowable(t);
+
+ if (t instanceof RuntimeException) {
+ throw (RuntimeException)t;
+ }
+ else {
+ throw new RuntimeException(t.getClass().getName() +
+ " is not a valid exception");
+ }
+ }
+
+ return (it.tref.liferay.portos.bo.model.Comune)ClpSerializer.translateOutput(returnObj);
+ }
+
@Override
public it.tref.liferay.portos.bo.model.Comune updateComune(long userId,
long comuneId, java.lang.String codiceProvincia,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName37,
- _methodParameterTypes37,
+ returnObj = _invokableLocalService.invokeMethod(_methodName38,
+ _methodParameterTypes38,
new Object[] {
userId,
@@ -1462,6 +1507,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
ClpSerializer.translateInput(mailSue),
+ praticaOspedaliera,
+
ClpSerializer.translateInput(serviceContext)
});
}
@@ -1494,14 +1541,15 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName38,
- _methodParameterTypes38,
+ returnObj = _invokableLocalService.invokeMethod(_methodName39,
+ _methodParameterTypes39,
new Object[] {
userId,
@@ -1521,6 +1569,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
ClpSerializer.translateInput(mailSue),
+ praticaOspedaliera,
+
ClpSerializer.translateInput(serviceContext)
});
}
@@ -1553,8 +1603,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName39,
- _methodParameterTypes39, new Object[] { userId });
+ returnObj = _invokableLocalService.invokeMethod(_methodName40,
+ _methodParameterTypes40, new Object[] { userId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@@ -1582,8 +1632,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName40,
- _methodParameterTypes40, new Object[] { userId, ufficioId });
+ returnObj = _invokableLocalService.invokeMethod(_methodName41,
+ _methodParameterTypes41, new Object[] { userId, ufficioId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@@ -1685,4 +1735,6 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
private String[] _methodParameterTypes39;
private String _methodName40;
private String[] _methodParameterTypes40;
+ private String _methodName41;
+ private String[] _methodParameterTypes41;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java
index 2f39b388..0e7f37c3 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java
@@ -310,14 +310,14 @@ public class ComuneLocalServiceUtil {
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String codiceBelfiore, java.lang.String denominazione,
boolean provincia, boolean stato, java.lang.String mailSuap,
- java.lang.String mailSue,
+ java.lang.String mailSue, boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.addComune(userId, codiceProvincia, codiceComune,
codiceIstat, codiceBelfiore, denominazione, provincia, stato,
- mailSuap, mailSue, serviceContext);
+ mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
public static it.tref.liferay.portos.bo.model.Comune addComune(
@@ -325,13 +325,14 @@ public class ComuneLocalServiceUtil {
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String codiceBelfiore, java.lang.String denominazione,
boolean provincia, java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.addComune(userId, codiceProvincia, codiceComune,
codiceIstat, codiceBelfiore, denominazione, provincia, mailSuap,
- mailSue, serviceContext);
+ mailSue, praticaOspedaliera, serviceContext);
}
public static int countByCompanyId(long companyId)
@@ -424,18 +425,27 @@ public class ComuneLocalServiceUtil {
return getService().getStatiEsteri(companyId);
}
+ public static it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera(
+ long comuneId, boolean isPraticaOspedaliera,
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ return getService()
+ .setPraticaOspedaliera(comuneId, isPraticaOspedaliera,
+ serviceContext);
+ }
+
public static it.tref.liferay.portos.bo.model.Comune updateComune(
long userId, long comuneId, java.lang.String codiceProvincia,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.updateComune(userId, comuneId, codiceProvincia,
codiceComune, codiceIstat, denominazione, provincia, stato,
- mailSuap, mailSue, serviceContext);
+ mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
public static it.tref.liferay.portos.bo.model.Comune updateComune(
@@ -443,13 +453,14 @@ public class ComuneLocalServiceUtil {
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.updateComune(userId, comuneId, codiceProvincia,
codiceComune, codiceIstat, denominazione, provincia, mailSuap,
- mailSue, serviceContext);
+ mailSue, praticaOspedaliera, serviceContext);
}
public static java.util.List getComuniForOrganizationByUserId(
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java
index e952f5b2..d88a8211 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java
@@ -318,12 +318,14 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService,
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _comuneLocalService.addComune(userId, codiceProvincia,
codiceComune, codiceIstat, codiceBelfiore, denominazione,
- provincia, stato, mailSuap, mailSue, serviceContext);
+ provincia, stato, mailSuap, mailSue, praticaOspedaliera,
+ serviceContext);
}
@Override
@@ -332,12 +334,13 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService,
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _comuneLocalService.addComune(userId, codiceProvincia,
codiceComune, codiceIstat, codiceBelfiore, denominazione,
- provincia, mailSuap, mailSue, serviceContext);
+ provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
@Override
@@ -443,18 +446,28 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService,
return _comuneLocalService.getStatiEsteri(companyId);
}
+ @Override
+ public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera(
+ long comuneId, boolean isPraticaOspedaliera,
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ return _comuneLocalService.setPraticaOspedaliera(comuneId,
+ isPraticaOspedaliera, serviceContext);
+ }
+
@Override
public it.tref.liferay.portos.bo.model.Comune updateComune(long userId,
long comuneId, java.lang.String codiceProvincia,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _comuneLocalService.updateComune(userId, comuneId,
codiceProvincia, codiceComune, codiceIstat, denominazione,
- provincia, stato, mailSuap, mailSue, serviceContext);
+ provincia, stato, mailSuap, mailSue, praticaOspedaliera,
+ serviceContext);
}
@Override
@@ -463,12 +476,13 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
+ boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _comuneLocalService.updateComune(userId, comuneId,
codiceProvincia, codiceComune, codiceIstat, denominazione,
- provincia, mailSuap, mailSue, serviceContext);
+ provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
@Override
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java
index 7aa55b2d..83b56609 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java
@@ -297,6 +297,11 @@ public interface TerritorioLocalService extends BaseLocalService,
java.lang.String codiceProvincia)
throws com.liferay.portal.kernel.exception.SystemException;
+ @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
+ public java.util.List getActiveComuniByCodiceProvincia_Ospedaliera(
+ java.lang.String codiceProvincia)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List getActiveTerritoriByComune(
long comuneId)
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java
index a41b0efc..86d2a9e4 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java
@@ -157,38 +157,42 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
_methodParameterTypes26 = new String[] { "java.lang.String" };
- _methodName27 = "getActiveTerritoriByComune";
+ _methodName27 = "getActiveComuniByCodiceProvincia_Ospedaliera";
- _methodParameterTypes27 = new String[] { "long" };
+ _methodParameterTypes27 = new String[] { "java.lang.String" };
- _methodName28 = "findTerritorioByComuneIdGZonaFasciaDtIni";
+ _methodName28 = "getActiveTerritoriByComune";
- _methodParameterTypes28 = new String[] {
+ _methodParameterTypes28 = new String[] { "long" };
+
+ _methodName29 = "findTerritorioByComuneIdGZonaFasciaDtIni";
+
+ _methodParameterTypes29 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.util.Date"
};
- _methodName29 = "fetchByOldTerriotioId";
+ _methodName30 = "fetchByOldTerriotioId";
- _methodParameterTypes29 = new String[] { "long" };
+ _methodParameterTypes30 = new String[] { "long" };
- _methodName30 = "getTerritoriByGroupAndZona";
+ _methodName31 = "getTerritoriByGroupAndZona";
- _methodParameterTypes30 = new String[] { "long", "java.lang.String" };
+ _methodParameterTypes31 = new String[] { "long", "java.lang.String" };
- _methodName31 = "getTerritoriByGroupAndZonaAndFascia";
+ _methodName32 = "getTerritoriByGroupAndZonaAndFascia";
- _methodParameterTypes31 = new String[] {
+ _methodParameterTypes32 = new String[] {
"long", "java.lang.String", "java.lang.String"
};
- _methodName32 = "getAllTerritorioGroup";
+ _methodName33 = "getAllTerritorioGroup";
- _methodParameterTypes32 = new String[] { };
+ _methodParameterTypes33 = new String[] { };
- _methodName33 = "verifyTerritorioConstraintAlreadyExist";
+ _methodName34 = "verifyTerritorioConstraintAlreadyExist";
- _methodParameterTypes33 = new String[] {
+ _methodParameterTypes34 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.util.Date"
};
@@ -1045,6 +1049,36 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
return (java.util.List)ClpSerializer.translateOutput(returnObj);
}
+ @Override
+ public java.util.List getActiveComuniByCodiceProvincia_Ospedaliera(
+ java.lang.String codiceProvincia)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ Object returnObj = null;
+
+ try {
+ returnObj = _invokableLocalService.invokeMethod(_methodName27,
+ _methodParameterTypes27,
+ new Object[] { ClpSerializer.translateInput(codiceProvincia) });
+ }
+ catch (Throwable t) {
+ t = ClpSerializer.translateThrowable(t);
+
+ if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
+ throw (com.liferay.portal.kernel.exception.SystemException)t;
+ }
+
+ if (t instanceof RuntimeException) {
+ throw (RuntimeException)t;
+ }
+ else {
+ throw new RuntimeException(t.getClass().getName() +
+ " is not a valid exception");
+ }
+ }
+
+ return (java.util.List)ClpSerializer.translateOutput(returnObj);
+ }
+
@Override
public java.util.List getActiveTerritoriByComune(
long comuneId)
@@ -1052,8 +1086,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName27,
- _methodParameterTypes27, new Object[] { comuneId });
+ returnObj = _invokableLocalService.invokeMethod(_methodName28,
+ _methodParameterTypes28, new Object[] { comuneId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@@ -1083,8 +1117,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName28,
- _methodParameterTypes28,
+ returnObj = _invokableLocalService.invokeMethod(_methodName29,
+ _methodParameterTypes29,
new Object[] {
comuneId,
@@ -1128,8 +1162,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName29,
- _methodParameterTypes29, new Object[] { oldTerritorioId });
+ returnObj = _invokableLocalService.invokeMethod(_methodName30,
+ _methodParameterTypes30, new Object[] { oldTerritorioId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@@ -1161,8 +1195,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName30,
- _methodParameterTypes30,
+ returnObj = _invokableLocalService.invokeMethod(_methodName31,
+ _methodParameterTypes31,
new Object[] { groupId, ClpSerializer.translateInput(zona) });
}
catch (Throwable t) {
@@ -1191,8 +1225,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName31,
- _methodParameterTypes31,
+ returnObj = _invokableLocalService.invokeMethod(_methodName32,
+ _methodParameterTypes32,
new Object[] {
groupId,
@@ -1226,8 +1260,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName32,
- _methodParameterTypes32, new Object[] { });
+ returnObj = _invokableLocalService.invokeMethod(_methodName33,
+ _methodParameterTypes33, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@@ -1256,8 +1290,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
- returnObj = _invokableLocalService.invokeMethod(_methodName33,
- _methodParameterTypes33,
+ returnObj = _invokableLocalService.invokeMethod(_methodName34,
+ _methodParameterTypes34,
new Object[] {
comuneId,
@@ -1356,4 +1390,6 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
private String[] _methodParameterTypes32;
private String _methodName33;
private String[] _methodParameterTypes33;
+ private String _methodName34;
+ private String[] _methodParameterTypes34;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java
index e246467c..3c23fca6 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java
@@ -337,6 +337,13 @@ public class TerritorioLocalServiceUtil {
return getService().getActiveComuniByCodiceProvincia(codiceProvincia);
}
+ public static java.util.List getActiveComuniByCodiceProvincia_Ospedaliera(
+ java.lang.String codiceProvincia)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getService()
+ .getActiveComuniByCodiceProvincia_Ospedaliera(codiceProvincia);
+ }
+
public static java.util.List getActiveTerritoriByComune(
long comuneId)
throws com.liferay.portal.kernel.exception.SystemException {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java
index b81568a6..df40d376 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java
@@ -356,6 +356,13 @@ public class TerritorioLocalServiceWrapper implements TerritorioLocalService,
return _territorioLocalService.getActiveComuniByCodiceProvincia(codiceProvincia);
}
+ @Override
+ public java.util.List getActiveComuniByCodiceProvincia_Ospedaliera(
+ java.lang.String codiceProvincia)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _territorioLocalService.getActiveComuniByCodiceProvincia_Ospedaliera(codiceProvincia);
+ }
+
@Override
public java.util.List getActiveTerritoriByComune(
long comuneId)
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
index 71567d33..21ffc04a 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
@@ -127,7 +127,8 @@ create table portos_bo_Comune (
stato BOOLEAN,
disabilitato BOOLEAN,
mailSuap VARCHAR(75) null,
- mailSue VARCHAR(75) null
+ mailSue VARCHAR(75) null,
+ praticaOspedali BOOLEAN
);
create table portos_bo_Comunicazione (
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
index 5add6d90..9a0524ee 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
@@ -167,6 +167,7 @@
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
index bab91bad..4e1f37e5 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
@@ -147,6 +147,7 @@
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
index 9e13a637..a2c90932 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
@@ -210,6 +210,7 @@
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java
index 0e185e8e..ca7c9246 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java
@@ -141,12 +141,12 @@ public class ZoneSismicheUtil {
private String aggiungiComune(long companyId, String denominazione, String codiceProvincia, String codiceComune,
String codiceIstat, String codiceBelfiore, boolean provincia, String mailSuap, String mailSue,
- ServiceContext serviceContext) throws PortalException, SystemException {
+ boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
Comune comune = ComuneLocalServiceUtil.fetchByC_CB(companyId, codiceBelfiore);
if (Validator.isNull(comune)) {
ComuneLocalServiceUtil.addComune(serviceContext.getUserId(), codiceProvincia, codiceComune, codiceIstat,
- codiceBelfiore, denominazione, provincia, mailSuap, mailSue, serviceContext);
+ codiceBelfiore, denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
return "Aggiunto il comune \"" + denominazione + "\"";
}
return "Comune \"" + denominazione + "\" giĆ presente";
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java
index 23c25713..39f2db01 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java
@@ -37,7 +37,7 @@ import java.util.Date;
public class ComuneCacheModel implements CacheModel, Externalizable {
@Override
public String toString() {
- StringBundler sb = new StringBundler(35);
+ StringBundler sb = new StringBundler(37);
sb.append("{uuid=");
sb.append(uuid);
@@ -73,6 +73,8 @@ public class ComuneCacheModel implements CacheModel, Externalizable {
sb.append(mailSuap);
sb.append(", mailSue=");
sb.append(mailSue);
+ sb.append(", praticaOspedali=");
+ sb.append(praticaOspedali);
sb.append("}");
return sb.toString();
@@ -167,6 +169,8 @@ public class ComuneCacheModel implements CacheModel, Externalizable {
comuneImpl.setMailSue(mailSue);
}
+ comuneImpl.setPraticaOspedali(praticaOspedali);
+
comuneImpl.resetOriginalValues();
return comuneImpl;
@@ -191,6 +195,7 @@ public class ComuneCacheModel implements CacheModel, Externalizable {
disabilitato = objectInput.readBoolean();
mailSuap = objectInput.readUTF();
mailSue = objectInput.readUTF();
+ praticaOspedali = objectInput.readBoolean();
}
@Override
@@ -269,6 +274,8 @@ public class ComuneCacheModel implements CacheModel, Externalizable {
else {
objectOutput.writeUTF(mailSue);
}
+
+ objectOutput.writeBoolean(praticaOspedali);
}
public String uuid;
@@ -288,4 +295,5 @@ public class ComuneCacheModel implements CacheModel, Externalizable {
public boolean disabilitato;
public String mailSuap;
public String mailSue;
+ public boolean praticaOspedali;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java
index c534a868..0b09d59d 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java
@@ -83,9 +83,10 @@ public class ComuneModelImpl extends BaseModelImpl
{ "stato", Types.BOOLEAN },
{ "disabilitato", Types.BOOLEAN },
{ "mailSuap", Types.VARCHAR },
- { "mailSue", Types.VARCHAR }
+ { "mailSue", Types.VARCHAR },
+ { "praticaOspedali", Types.BOOLEAN }
};
- public static final String TABLE_SQL_CREATE = "create table portos_bo_Comune (uuid_ VARCHAR(75) null,comuneId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,codiceProvincia VARCHAR(75) null,codiceComune VARCHAR(75) null,codiceIstat VARCHAR(6) null,codiceBelfiore VARCHAR(75) null,denominazione VARCHAR(250) null,provincia BOOLEAN,stato BOOLEAN,disabilitato BOOLEAN,mailSuap VARCHAR(75) null,mailSue VARCHAR(75) null)";
+ public static final String TABLE_SQL_CREATE = "create table portos_bo_Comune (uuid_ VARCHAR(75) null,comuneId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,codiceProvincia VARCHAR(75) null,codiceComune VARCHAR(75) null,codiceIstat VARCHAR(6) null,codiceBelfiore VARCHAR(75) null,denominazione VARCHAR(250) null,provincia BOOLEAN,stato BOOLEAN,disabilitato BOOLEAN,mailSuap VARCHAR(75) null,mailSue VARCHAR(75) null,praticaOspedali BOOLEAN)";
public static final String TABLE_SQL_DROP = "drop table portos_bo_Comune";
public static final String ORDER_BY_JPQL = " ORDER BY comune.denominazione ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Comune.denominazione ASC";
@@ -139,6 +140,7 @@ public class ComuneModelImpl extends BaseModelImpl
model.setDisabilitato(soapModel.getDisabilitato());
model.setMailSuap(soapModel.getMailSuap());
model.setMailSue(soapModel.getMailSue());
+ model.setPraticaOspedali(soapModel.getPraticaOspedali());
return model;
}
@@ -220,6 +222,7 @@ public class ComuneModelImpl extends BaseModelImpl
attributes.put("disabilitato", getDisabilitato());
attributes.put("mailSuap", getMailSuap());
attributes.put("mailSue", getMailSue());
+ attributes.put("praticaOspedali", getPraticaOspedali());
return attributes;
}
@@ -327,6 +330,12 @@ public class ComuneModelImpl extends BaseModelImpl
if (mailSue != null) {
setMailSue(mailSue);
}
+
+ Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali");
+
+ if (praticaOspedali != null) {
+ setPraticaOspedali(praticaOspedali);
+ }
}
@JSON
@@ -658,6 +667,22 @@ public class ComuneModelImpl extends BaseModelImpl
_mailSue = mailSue;
}
+ @JSON
+ @Override
+ public boolean getPraticaOspedali() {
+ return _praticaOspedali;
+ }
+
+ @Override
+ public boolean isPraticaOspedali() {
+ return _praticaOspedali;
+ }
+
+ @Override
+ public void setPraticaOspedali(boolean praticaOspedali) {
+ _praticaOspedali = praticaOspedali;
+ }
+
@Override
public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId(
@@ -712,6 +737,7 @@ public class ComuneModelImpl extends BaseModelImpl
comuneImpl.setDisabilitato(getDisabilitato());
comuneImpl.setMailSuap(getMailSuap());
comuneImpl.setMailSue(getMailSue());
+ comuneImpl.setPraticaOspedali(getPraticaOspedali());
comuneImpl.resetOriginalValues();
@@ -889,12 +915,14 @@ public class ComuneModelImpl extends BaseModelImpl
comuneCacheModel.mailSue = null;
}
+ comuneCacheModel.praticaOspedali = getPraticaOspedali();
+
return comuneCacheModel;
}
@Override
public String toString() {
- StringBundler sb = new StringBundler(35);
+ StringBundler sb = new StringBundler(37);
sb.append("{uuid=");
sb.append(getUuid());
@@ -930,6 +958,8 @@ public class ComuneModelImpl extends BaseModelImpl
sb.append(getMailSuap());
sb.append(", mailSue=");
sb.append(getMailSue());
+ sb.append(", praticaOspedali=");
+ sb.append(getPraticaOspedali());
sb.append("}");
return sb.toString();
@@ -937,7 +967,7 @@ public class ComuneModelImpl extends BaseModelImpl
@Override
public String toXmlString() {
- StringBundler sb = new StringBundler(55);
+ StringBundler sb = new StringBundler(58);
sb.append("");
sb.append("it.tref.liferay.portos.bo.model.Comune");
@@ -1011,6 +1041,10 @@ public class ComuneModelImpl extends BaseModelImpl
"mailSue");
+ sb.append(
+ "praticaOspedali");
sb.append("");
@@ -1046,6 +1080,7 @@ public class ComuneModelImpl extends BaseModelImpl
private boolean _disabilitato;
private String _mailSuap;
private String _mailSue;
+ private boolean _praticaOspedali;
private long _columnBitmask;
private Comune _escapedModel;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java
index c07a7f3a..5592c604 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java
@@ -180,6 +180,7 @@ public class AmministrazionePortlet extends MVCPortlet {
String denominazione = ParamUtil.getString(actionRequest, "denominazione");
String mailSuap = ParamUtil.getString(actionRequest, "mailSuap");
String mailSue = ParamUtil.getString(actionRequest, "mailSue");
+ boolean praticaOspedaliera = ParamUtil.getBoolean(actionRequest, "praticaOspedaliera");
boolean provincia = ParamUtil.getBoolean(actionRequest, "provincia");
ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), actionRequest);
long userId = PortalUtil.getUserId(actionRequest);
@@ -188,10 +189,10 @@ public class AmministrazionePortlet extends MVCPortlet {
if (comuneId == 0) { // ADD
codiceComune = codiceIstat.substring(0, 3);
comune = ComuneLocalServiceUtil.addComune(userId, codiceProvincia, codiceComune, codiceIstat,
- codiceBelfiore, denominazione, provincia, mailSuap, mailSue, serviceContext);
+ codiceBelfiore, denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
} else { // EDIT
ComuneLocalServiceUtil.updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat,
- denominazione, provincia, mailSuap, mailSue, serviceContext);
+ denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
String redirect = ParamUtil.getString(actionRequest, "redirect");
if (Validator.isNull(redirect)) {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java
index dc70ba92..492df201 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java
@@ -128,7 +128,7 @@ public class ComuneLocalServiceClpInvoker {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"boolean", "boolean", "java.lang.String", "java.lang.String",
- "com.liferay.portal.service.ServiceContext"
+ "boolean", "com.liferay.portal.service.ServiceContext"
};
_methodName187 = "addComune";
@@ -136,7 +136,7 @@ public class ComuneLocalServiceClpInvoker {
_methodParameterTypes187 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
- "boolean", "java.lang.String", "java.lang.String",
+ "boolean", "java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
@@ -215,31 +215,37 @@ public class ComuneLocalServiceClpInvoker {
_methodParameterTypes203 = new String[] { "long" };
- _methodName204 = "updateComune";
+ _methodName204 = "setPraticaOspedaliera";
_methodParameterTypes204 = new String[] {
+ "long", "boolean", "com.liferay.portal.service.ServiceContext"
+ };
+
+ _methodName205 = "updateComune";
+
+ _methodParameterTypes205 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean", "boolean",
- "java.lang.String", "java.lang.String",
+ "java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
- _methodName205 = "updateComune";
+ _methodName206 = "updateComune";
- _methodParameterTypes205 = new String[] {
+ _methodParameterTypes206 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean",
- "java.lang.String", "java.lang.String",
+ "java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
- _methodName206 = "getComuniForOrganizationByUserId";
+ _methodName207 = "getComuniForOrganizationByUserId";
- _methodParameterTypes206 = new String[] { "long" };
+ _methodParameterTypes207 = new String[] { "long" };
- _methodName207 = "getComuniForOrganizationByUserIdUfficioId";
+ _methodName208 = "getComuniForOrganizationByUserIdUfficioId";
- _methodParameterTypes207 = new String[] { "long", "long" };
+ _methodParameterTypes208 = new String[] { "long", "long" };
}
public Object invokeMethod(String name, String[] parameterTypes,
@@ -364,7 +370,8 @@ public class ComuneLocalServiceClpInvoker {
((Boolean)arguments[6]).booleanValue(),
((Boolean)arguments[7]).booleanValue(),
(java.lang.String)arguments[8], (java.lang.String)arguments[9],
- (com.liferay.portal.service.ServiceContext)arguments[10]);
+ ((Boolean)arguments[10]).booleanValue(),
+ (com.liferay.portal.service.ServiceContext)arguments[11]);
}
if (_methodName187.equals(name) &&
@@ -375,7 +382,8 @@ public class ComuneLocalServiceClpInvoker {
(java.lang.String)arguments[5],
((Boolean)arguments[6]).booleanValue(),
(java.lang.String)arguments[7], (java.lang.String)arguments[8],
- (com.liferay.portal.service.ServiceContext)arguments[9]);
+ ((Boolean)arguments[9]).booleanValue(),
+ (com.liferay.portal.service.ServiceContext)arguments[10]);
}
if (_methodName188.equals(name) &&
@@ -481,6 +489,13 @@ public class ComuneLocalServiceClpInvoker {
if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
+ return ComuneLocalServiceUtil.setPraticaOspedaliera(((Long)arguments[0]).longValue(),
+ ((Boolean)arguments[1]).booleanValue(),
+ (com.liferay.portal.service.ServiceContext)arguments[2]);
+ }
+
+ if (_methodName205.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
return ComuneLocalServiceUtil.updateComune(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
@@ -488,27 +503,29 @@ public class ComuneLocalServiceClpInvoker {
((Boolean)arguments[6]).booleanValue(),
((Boolean)arguments[7]).booleanValue(),
(java.lang.String)arguments[8], (java.lang.String)arguments[9],
- (com.liferay.portal.service.ServiceContext)arguments[10]);
+ ((Boolean)arguments[10]).booleanValue(),
+ (com.liferay.portal.service.ServiceContext)arguments[11]);
}
- if (_methodName205.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
+ if (_methodName206.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
return ComuneLocalServiceUtil.updateComune(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
(java.lang.String)arguments[4], (java.lang.String)arguments[5],
((Boolean)arguments[6]).booleanValue(),
(java.lang.String)arguments[7], (java.lang.String)arguments[8],
- (com.liferay.portal.service.ServiceContext)arguments[9]);
+ ((Boolean)arguments[9]).booleanValue(),
+ (com.liferay.portal.service.ServiceContext)arguments[10]);
}
- if (_methodName206.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
+ if (_methodName207.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
return ComuneLocalServiceUtil.getComuniForOrganizationByUserId(((Long)arguments[0]).longValue());
}
- if (_methodName207.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
+ if (_methodName208.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
return ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
@@ -600,4 +617,6 @@ public class ComuneLocalServiceClpInvoker {
private String[] _methodParameterTypes206;
private String _methodName207;
private String[] _methodParameterTypes207;
+ private String _methodName208;
+ private String[] _methodParameterTypes208;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java
index a6031068..6a3e4a4d 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java
@@ -156,48 +156,52 @@ public class TerritorioLocalServiceClpInvoker {
_methodParameterTypes191 = new String[] { "java.lang.String" };
- _methodName192 = "getActiveTerritoriByComune";
+ _methodName193 = "getActiveComuniByCodiceProvincia_Ospedaliera";
- _methodParameterTypes192 = new String[] { "long" };
+ _methodParameterTypes193 = new String[] { "java.lang.String" };
- _methodName193 = "deleteTerritorio";
+ _methodName194 = "getActiveTerritoriByComune";
- _methodParameterTypes193 = new String[] { "long" };
+ _methodParameterTypes194 = new String[] { "long" };
- _methodName194 = "deleteTerritorio";
+ _methodName195 = "deleteTerritorio";
- _methodParameterTypes194 = new String[] {
+ _methodParameterTypes195 = new String[] { "long" };
+
+ _methodName196 = "deleteTerritorio";
+
+ _methodParameterTypes196 = new String[] {
"it.tref.liferay.portos.bo.model.Territorio"
};
- _methodName195 = "findTerritorioByComuneIdGZonaFasciaDtIni";
+ _methodName197 = "findTerritorioByComuneIdGZonaFasciaDtIni";
- _methodParameterTypes195 = new String[] {
+ _methodParameterTypes197 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.util.Date"
};
- _methodName196 = "fetchByOldTerriotioId";
+ _methodName198 = "fetchByOldTerriotioId";
- _methodParameterTypes196 = new String[] { "long" };
+ _methodParameterTypes198 = new String[] { "long" };
- _methodName198 = "getTerritoriByGroupAndZona";
+ _methodName200 = "getTerritoriByGroupAndZona";
- _methodParameterTypes198 = new String[] { "long", "java.lang.String" };
+ _methodParameterTypes200 = new String[] { "long", "java.lang.String" };
- _methodName199 = "getTerritoriByGroupAndZonaAndFascia";
+ _methodName201 = "getTerritoriByGroupAndZonaAndFascia";
- _methodParameterTypes199 = new String[] {
+ _methodParameterTypes201 = new String[] {
"long", "java.lang.String", "java.lang.String"
};
- _methodName201 = "getAllTerritorioGroup";
+ _methodName203 = "getAllTerritorioGroup";
- _methodParameterTypes201 = new String[] { };
+ _methodParameterTypes203 = new String[] { };
- _methodName202 = "verifyTerritorioConstraintAlreadyExist";
+ _methodName204 = "verifyTerritorioConstraintAlreadyExist";
- _methodParameterTypes202 = new String[] {
+ _methodParameterTypes204 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.util.Date"
};
@@ -368,53 +372,58 @@ public class TerritorioLocalServiceClpInvoker {
return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia((java.lang.String)arguments[0]);
}
- if (_methodName192.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) {
- return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue());
- }
-
if (_methodName193.equals(name) &&
Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) {
- return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue());
+ return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia_Ospedaliera((java.lang.String)arguments[0]);
}
if (_methodName194.equals(name) &&
Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) {
- return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]);
+ return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue());
}
if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) {
+ return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue());
+ }
+
+ if (_methodName196.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
+ return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]);
+ }
+
+ if (_methodName197.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
return TerritorioLocalServiceUtil.findTerritorioByComuneIdGZonaFasciaDtIni(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
(java.util.Date)arguments[4]);
}
- if (_methodName196.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
+ if (_methodName198.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
return TerritorioLocalServiceUtil.fetchByOldTerriotioId(((Long)arguments[0]).longValue());
}
- if (_methodName198.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
+ if (_methodName200.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) {
return TerritorioLocalServiceUtil.getTerritoriByGroupAndZona(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
- if (_methodName199.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
+ if (_methodName201.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
return TerritorioLocalServiceUtil.getTerritoriByGroupAndZonaAndFascia(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2]);
}
- if (_methodName201.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
+ if (_methodName203.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
return TerritorioLocalServiceUtil.getAllTerritorioGroup();
}
- if (_methodName202.equals(name) &&
- Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
+ if (_methodName204.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
return TerritorioLocalServiceUtil.verifyTerritorioConstraintAlreadyExist(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
@@ -476,8 +485,6 @@ public class TerritorioLocalServiceClpInvoker {
private String[] _methodParameterTypes190;
private String _methodName191;
private String[] _methodParameterTypes191;
- private String _methodName192;
- private String[] _methodParameterTypes192;
private String _methodName193;
private String[] _methodParameterTypes193;
private String _methodName194;
@@ -486,12 +493,16 @@ public class TerritorioLocalServiceClpInvoker {
private String[] _methodParameterTypes195;
private String _methodName196;
private String[] _methodParameterTypes196;
+ private String _methodName197;
+ private String[] _methodParameterTypes197;
private String _methodName198;
private String[] _methodParameterTypes198;
- private String _methodName199;
- private String[] _methodParameterTypes199;
+ private String _methodName200;
+ private String[] _methodParameterTypes200;
private String _methodName201;
private String[] _methodParameterTypes201;
- private String _methodName202;
- private String[] _methodParameterTypes202;
+ private String _methodName203;
+ private String[] _methodParameterTypes203;
+ private String _methodName204;
+ private String[] _methodParameterTypes204;
}
\ 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/ComuneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
index aac02cc8..788ad8c8 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
@@ -58,7 +58,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
@Override
public Comune addComune(long userId, String codiceProvincia, String codiceComune, String codiceIstat,
String codiceBelfiore, String denominazione, boolean provincia, boolean stato, String mailSuap,
- String mailSue, ServiceContext serviceContext) throws PortalException, SystemException {
+ String mailSue, boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@@ -79,6 +79,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
comune.setProvincia(provincia);
comune.setMailSuap(mailSuap);
comune.setMailSue(mailSue);
+ comune.setPraticaOspedaliera(praticaOspedaliera);
comune = comunePersistence.update(comune);
return comune;
}
@@ -86,7 +87,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
@Override
public Comune addComune(long userId, String codiceProvincia, String codiceComune, String codiceIstat,
String codiceBelfiore, String denominazione, boolean provincia, String mailSuap, String mailSue,
- ServiceContext serviceContext) throws PortalException, SystemException {
+ boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@@ -106,6 +107,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
comune.setProvincia(provincia);
comune.setMailSuap(mailSuap);
comune.setMailSue(mailSue);
+ comune.setPraticaOspedaliera(praticaOspedaliera);
comune = comunePersistence.update(comune);
return comune;
}
@@ -216,11 +218,19 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
return comunePersistence.findByC_Stato(companyId, true);
}
+
+ public Comune setPraticaOspedaliera(long comuneId, boolean isPraticaOspedaliera, ServiceContext serviceContext){
+ Comune comune = comunePersistence.fetchByPrimaryKey(comuneId);
+ comune.setPraticaOspedaliera(isPraticaOspedaliera);
+ comune.setModifiedDate(serviceContext.getModifiedDate(new Date()));
+ comune = comunePersistence.update(comune);
+ return comune;
+ }
@Override
public Comune updateComune(long userId, long comuneId, String codiceProvincia, String codiceComune,
String codiceIstat, String denominazione, boolean provincia, boolean stato, String mailSuap,
- String mailSue, ServiceContext serviceContext) throws PortalException, SystemException {
+ String mailSue, boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@@ -240,6 +250,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
comune.setMailSue(mailSue);
comune.setDenominazione(denominazione);
comune.setProvincia(provincia);
+ comune.setPraticaOspedaliera(praticaOspedaliera);
comune = comunePersistence.update(comune);
return comune;
}
@@ -247,7 +258,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
@Override
public Comune updateComune(long userId, long comuneId, String codiceProvincia, String codiceComune,
String codiceIstat, String denominazione, boolean provincia, String mailSuap, String mailSue,
- ServiceContext serviceContext) throws PortalException, SystemException {
+ boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@@ -266,6 +277,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
comune.setMailSue(mailSue);
comune.setDenominazione(denominazione);
comune.setProvincia(provincia);
+ comune.setPraticaOspedaliera(praticaOspedaliera);
comune = comunePersistence.update(comune);
return comune;
}
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java
index be9275eb..b6e1b3ae 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java
@@ -149,9 +149,16 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
@Override
public List getActiveComuniByCodiceProvincia(String codiceProvincia) throws SystemException {
+ return _getActiveComuniByCodiceProvincia(codiceProvincia, false);
+ }
+
+ private List _getActiveComuniByCodiceProvincia(String codiceProvincia, boolean isPraticaOspedaliera) throws SystemException {
DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery();
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("comuneId")));
dynamicQuery.add(RestrictionsFactoryUtil.eq("codiceProvincia", codiceProvincia));
+ if(isPraticaOspedaliera){
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("praticaOspedaliera", true));
+ }
Junction and = RestrictionsFactoryUtil.conjunction();
Date date = new Date();
and.add(PropertyFactoryUtil.forName("groupId").ne(0l));
@@ -163,6 +170,13 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
dynamicQuery.add(and);
return territorioLocalService.dynamicQuery(dynamicQuery);
}
+
+ @SuppressWarnings("unchecked")
+ @Override
+ public List getActiveComuniByCodiceProvincia_Ospedaliera(String codiceProvincia) throws SystemException {
+
+ return _getActiveComuniByCodiceProvincia(codiceProvincia, true);
+ }
@SuppressWarnings("unchecked")
@Override
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/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 691776e7..260ad496 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
@@ -4602,6 +4602,7 @@ public class ComunePersistenceImpl extends BasePersistenceImpl
comuneImpl.setDisabilitato(comune.isDisabilitato());
comuneImpl.setMailSuap(comune.getMailSuap());
comuneImpl.setMailSue(comune.getMailSue());
+ comuneImpl.setPraticaOspedali(comune.isPraticaOspedali());
return comuneImpl;
}
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
index 7c24a6ed..a535a8fe 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=2903
- build.date=1682608140742
+ build.number=2904
+ build.date=1683125552991
build.auto.upgrade=true
##
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp
index d6427582..df95baae 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp
@@ -71,6 +71,7 @@ if(Validator.isNotNull(comune.getCodiceProvincia())) {
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp
index 2dba5845..85b80223 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp
@@ -68,6 +68,7 @@ DisplayTerms displayTerms = new DisplayTerms(renderRequest);
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
index d771acd7..fe418ea6 100644
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
index 7e4ab94b..d6ae2c90 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
@@ -154,6 +154,20 @@ public class FascicoloFePortlet extends MVCPortlet {
}
}
writeJSON(request, response, jsonArray);
+ } else if ("comuniOspedaliera".equals(id)) {
+ String provinciaId = ParamUtil.getString(request, "provinciaId");
+ JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
+ if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) {
+ List comuni = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia_Ospedaliera(provinciaId);
+ for (long comuneId : comuni) {
+ JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
+ Comune comune = ComuneLocalServiceUtil.getComune(comuneId);
+ jsonObject.put("comuneId", comune.getComuneId());
+ jsonObject.put("descLong", comune.getDenominazione());
+ jsonArray.put(jsonObject);
+ }
+ }
+ writeJSON(request, response, jsonArray);
} else if ("zoneFasce".equals(id)) {
long comuneId = ParamUtil.getLong(request, "comuneId", 0L);
JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp
index 4f999def..f12ee7ea 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp
@@ -50,6 +50,7 @@
+
var defaultFormValidator = A.config.FormValidator;
@@ -112,8 +113,12 @@
};
var getComuni = function(callback, provinciaId) {
+ var requestURL = '<%= getComuniURL %>';
+ if(isPraticaOspedaliera){
+ requestURL = '<%= getComuniOspedalieraURL %>';
+ }
A.io.request(
- '<%= getComuniURL %>',
+ requestURL,
{
data: {
provinciaId: provinciaId