diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-plugin-package.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-plugin-package.properties
index 7c7658ac..044bac22 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-plugin-package.properties
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-plugin-package.properties
@@ -15,7 +15,8 @@ portal-dependency-jars=\
jstl-api.jar,\
jstl-impl.jar,\
wsdl4j.jar,\
- xml-apis.jar
+ xml-apis.jar,\
+ commons-io.jar
portal-dependency-tlds=\
c.tld
required-deployment-contexts=\
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 bed90e50..eddf0a24 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=3145
- build.date=1621866062117
+ build.number=3146
+ build.date=1622551721804
build.auto.upgrade=true
##
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java
index 6cbf032f..c242e8a7 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java
@@ -22,6 +22,7 @@ import com.liferay.portal.kernel.json.JSONSerializer;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.servlet.ServletResponseUtil;
+import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.StreamUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.StringUtil;
@@ -151,7 +152,8 @@ public class FirmaServlet extends HttpServlet {
JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer();
jsonSerializer.exclude("*.class");
String jsonResponse = jsonSerializer.serialize(risposta);
- response.setContentType("application/json; charset=UTF-8");
+ response.setContentType(ContentTypes.APPLICATION_JSON);
+ response.setCharacterEncoding(StringPool.UTF8);
ServletResponseUtil.write(response, jsonResponse);
}
}
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.tern-project b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.tern-project
new file mode 100644
index 00000000..a185ba0d
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.tern-project
@@ -0,0 +1 @@
+{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.tern-project b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.tern-project
new file mode 100644
index 00000000..a185ba0d
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.tern-project
@@ -0,0 +1 @@
+{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/lib/sicilia-sue-connector-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/lib/sicilia-sue-connector-portlet-service.jar
index b48d4900..985e89cf 100644
Binary files a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/lib/sicilia-sue-connector-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/lib/sicilia-sue-connector-portlet-service.jar differ
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-display.xml b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-display.xml
index 79d2513c..95b5240a 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-display.xml
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-display.xml
@@ -5,4 +5,7 @@
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-plugin-package.properties b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-plugin-package.properties
index 066b9eef..ce76ffaa 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-plugin-package.properties
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-plugin-package.properties
@@ -9,4 +9,10 @@ page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+
-required-deployment-contexts=portos-bo-portlet
\ No newline at end of file
+portal-dependency-jars=\
+ commons-codec.jar,\
+ commons-io.jar,\
+ jstl-api.jar,\
+ jstl-impl.jar
+portal-dependency-tlds=c.tld
+required-deployment-contexts=portos-bo-portlet
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-portlet.xml
index 93887f16..1c7b9263 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-portlet.xml
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-portlet.xml
@@ -9,6 +9,15 @@
/js/main.js
sicilia-sue-connector
+
+ sicilia-sue-administration
+ /icon.png
+ configuration
+ 1.6
+ /css/main.css
+ /js/main.js
+ sicilia-sue-administration
+
administrator
Administrator
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/portlet.xml
index 95c83383..49ff4f07 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/portlet.xml
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/portlet.xml
@@ -31,4 +31,35 @@
user
+
+ sicilia-sue-administration
+ Amministrazione Connettore SUE
+ it.mwg.sicilia.sue.portlet.SueAdministrationPortlet
+
+ view-template
+ /html/administration/view.jsp
+
+ 0
+
+ text/html
+ view
+
+
+ Amministrazione Connettore SUE
+ Amministrazione Connettore SUE
+
+
+
+ administrator
+
+
+ guest
+
+
+ power-user
+
+
+ user
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service.xml
index 9f7dbf0f..4a3af20e 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service.xml
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service.xml
@@ -15,7 +15,13 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloClp.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloClp.java
index 8cd21861..c4561e05 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloClp.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloClp.java
@@ -81,6 +81,9 @@ public class SportelloClp extends BaseModelImpl implements Sportello
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
+ attributes.put("loginName", getLoginName());
+ attributes.put("password", getPassword());
+ attributes.put("nonce", getNonce());
return attributes;
}
@@ -128,6 +131,24 @@ public class SportelloClp extends BaseModelImpl implements Sportello
if (modifiedDate != null) {
setModifiedDate(modifiedDate);
}
+
+ String loginName = (String)attributes.get("loginName");
+
+ if (loginName != null) {
+ setLoginName(loginName);
+ }
+
+ String password = (String)attributes.get("password");
+
+ if (password != null) {
+ setPassword(password);
+ }
+
+ String nonce = (String)attributes.get("nonce");
+
+ if (nonce != null) {
+ setNonce(nonce);
+ }
}
@Override
@@ -301,6 +322,75 @@ public class SportelloClp extends BaseModelImpl implements Sportello
}
}
+ @Override
+ public String getLoginName() {
+ return _loginName;
+ }
+
+ @Override
+ public void setLoginName(String loginName) {
+ _loginName = loginName;
+
+ if (_sportelloRemoteModel != null) {
+ try {
+ Class> clazz = _sportelloRemoteModel.getClass();
+
+ Method method = clazz.getMethod("setLoginName", String.class);
+
+ method.invoke(_sportelloRemoteModel, loginName);
+ }
+ catch (Exception e) {
+ throw new UnsupportedOperationException(e);
+ }
+ }
+ }
+
+ @Override
+ public String getPassword() {
+ return _password;
+ }
+
+ @Override
+ public void setPassword(String password) {
+ _password = password;
+
+ if (_sportelloRemoteModel != null) {
+ try {
+ Class> clazz = _sportelloRemoteModel.getClass();
+
+ Method method = clazz.getMethod("setPassword", String.class);
+
+ method.invoke(_sportelloRemoteModel, password);
+ }
+ catch (Exception e) {
+ throw new UnsupportedOperationException(e);
+ }
+ }
+ }
+
+ @Override
+ public String getNonce() {
+ return _nonce;
+ }
+
+ @Override
+ public void setNonce(String nonce) {
+ _nonce = nonce;
+
+ if (_sportelloRemoteModel != null) {
+ try {
+ Class> clazz = _sportelloRemoteModel.getClass();
+
+ Method method = clazz.getMethod("setNonce", String.class);
+
+ method.invoke(_sportelloRemoteModel, nonce);
+ }
+ catch (Exception e) {
+ throw new UnsupportedOperationException(e);
+ }
+ }
+ }
+
public BaseModel> getSportelloRemoteModel() {
return _sportelloRemoteModel;
}
@@ -377,6 +467,9 @@ public class SportelloClp extends BaseModelImpl implements Sportello
clone.setUserName(getUserName());
clone.setCreateDate(getCreateDate());
clone.setModifiedDate(getModifiedDate());
+ clone.setLoginName(getLoginName());
+ clone.setPassword(getPassword());
+ clone.setNonce(getNonce());
return clone;
}
@@ -429,7 +522,7 @@ public class SportelloClp extends BaseModelImpl implements Sportello
@Override
public String toString() {
- StringBundler sb = new StringBundler(15);
+ StringBundler sb = new StringBundler(21);
sb.append("{sportelloId=");
sb.append(getSportelloId());
@@ -445,6 +538,12 @@ public class SportelloClp extends BaseModelImpl implements Sportello
sb.append(getCreateDate());
sb.append(", modifiedDate=");
sb.append(getModifiedDate());
+ sb.append(", loginName=");
+ sb.append(getLoginName());
+ sb.append(", password=");
+ sb.append(getPassword());
+ sb.append(", nonce=");
+ sb.append(getNonce());
sb.append("}");
return sb.toString();
@@ -452,7 +551,7 @@ public class SportelloClp extends BaseModelImpl implements Sportello
@Override
public String toXmlString() {
- StringBundler sb = new StringBundler(25);
+ StringBundler sb = new StringBundler(34);
sb.append("");
sb.append("it.mwg.sicilia.sue.model.Sportello");
@@ -486,6 +585,18 @@ public class SportelloClp extends BaseModelImpl implements Sportello
"modifiedDate");
+ sb.append(
+ "loginName");
+ sb.append(
+ "password");
+ sb.append(
+ "nonce");
sb.append("");
@@ -500,6 +611,9 @@ public class SportelloClp extends BaseModelImpl implements Sportello
private String _userName;
private Date _createDate;
private Date _modifiedDate;
+ private String _loginName;
+ private String _password;
+ private String _nonce;
private BaseModel> _sportelloRemoteModel;
private Class> _clpSerializerClass = it.mwg.sicilia.sue.service.ClpSerializer.class;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloModel.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloModel.java
index d443d45c..bbe670cf 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloModel.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloModel.java
@@ -189,6 +189,51 @@ public interface SportelloModel extends BaseModel, GroupedModel {
@Override
public void setModifiedDate(Date modifiedDate);
+ /**
+ * Returns the login name of this sportello.
+ *
+ * @return the login name of this sportello
+ */
+ @AutoEscape
+ public String getLoginName();
+
+ /**
+ * Sets the login name of this sportello.
+ *
+ * @param loginName the login name of this sportello
+ */
+ public void setLoginName(String loginName);
+
+ /**
+ * Returns the password of this sportello.
+ *
+ * @return the password of this sportello
+ */
+ @AutoEscape
+ public String getPassword();
+
+ /**
+ * Sets the password of this sportello.
+ *
+ * @param password the password of this sportello
+ */
+ public void setPassword(String password);
+
+ /**
+ * Returns the nonce of this sportello.
+ *
+ * @return the nonce of this sportello
+ */
+ @AutoEscape
+ public String getNonce();
+
+ /**
+ * Sets the nonce of this sportello.
+ *
+ * @param nonce the nonce of this sportello
+ */
+ public void setNonce(String nonce);
+
@Override
public boolean isNew();
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloSoap.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloSoap.java
index b1174da7..1dc57500 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloSoap.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloSoap.java
@@ -38,6 +38,9 @@ public class SportelloSoap implements Serializable {
soapModel.setUserName(model.getUserName());
soapModel.setCreateDate(model.getCreateDate());
soapModel.setModifiedDate(model.getModifiedDate());
+ soapModel.setLoginName(model.getLoginName());
+ soapModel.setPassword(model.getPassword());
+ soapModel.setNonce(model.getNonce());
return soapModel;
}
@@ -146,6 +149,30 @@ public class SportelloSoap implements Serializable {
_modifiedDate = modifiedDate;
}
+ public String getLoginName() {
+ return _loginName;
+ }
+
+ public void setLoginName(String loginName) {
+ _loginName = loginName;
+ }
+
+ public String getPassword() {
+ return _password;
+ }
+
+ public void setPassword(String password) {
+ _password = password;
+ }
+
+ public String getNonce() {
+ return _nonce;
+ }
+
+ public void setNonce(String nonce) {
+ _nonce = nonce;
+ }
+
private long _sportelloId;
private long _groupId;
private long _companyId;
@@ -153,4 +180,7 @@ public class SportelloSoap implements Serializable {
private String _userName;
private Date _createDate;
private Date _modifiedDate;
+ private String _loginName;
+ private String _password;
+ private String _nonce;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloWrapper.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloWrapper.java
index 69fcbad7..db1e12c2 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloWrapper.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/model/SportelloWrapper.java
@@ -56,6 +56,9 @@ public class SportelloWrapper implements Sportello, ModelWrapper {
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
+ attributes.put("loginName", getLoginName());
+ attributes.put("password", getPassword());
+ attributes.put("nonce", getNonce());
return attributes;
}
@@ -103,6 +106,24 @@ public class SportelloWrapper implements Sportello, ModelWrapper {
if (modifiedDate != null) {
setModifiedDate(modifiedDate);
}
+
+ String loginName = (String)attributes.get("loginName");
+
+ if (loginName != null) {
+ setLoginName(loginName);
+ }
+
+ String password = (String)attributes.get("password");
+
+ if (password != null) {
+ setPassword(password);
+ }
+
+ String nonce = (String)attributes.get("nonce");
+
+ if (nonce != null) {
+ setNonce(nonce);
+ }
}
/**
@@ -287,6 +308,66 @@ public class SportelloWrapper implements Sportello, ModelWrapper {
_sportello.setModifiedDate(modifiedDate);
}
+ /**
+ * Returns the login name of this sportello.
+ *
+ * @return the login name of this sportello
+ */
+ @Override
+ public java.lang.String getLoginName() {
+ return _sportello.getLoginName();
+ }
+
+ /**
+ * Sets the login name of this sportello.
+ *
+ * @param loginName the login name of this sportello
+ */
+ @Override
+ public void setLoginName(java.lang.String loginName) {
+ _sportello.setLoginName(loginName);
+ }
+
+ /**
+ * Returns the password of this sportello.
+ *
+ * @return the password of this sportello
+ */
+ @Override
+ public java.lang.String getPassword() {
+ return _sportello.getPassword();
+ }
+
+ /**
+ * Sets the password of this sportello.
+ *
+ * @param password the password of this sportello
+ */
+ @Override
+ public void setPassword(java.lang.String password) {
+ _sportello.setPassword(password);
+ }
+
+ /**
+ * Returns the nonce of this sportello.
+ *
+ * @return the nonce of this sportello
+ */
+ @Override
+ public java.lang.String getNonce() {
+ return _sportello.getNonce();
+ }
+
+ /**
+ * Sets the nonce of this sportello.
+ *
+ * @param nonce the nonce of this sportello
+ */
+ @Override
+ public void setNonce(java.lang.String nonce) {
+ _sportello.setNonce(nonce);
+ }
+
@Override
public boolean isNew() {
return _sportello.isNew();
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloPersistence.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloPersistence.java
index 2ba88c26..a30c21ec 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloPersistence.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloPersistence.java
@@ -37,6 +37,64 @@ public interface SportelloPersistence extends BasePersistence {
* Never modify or reference this interface directly. Always use {@link SportelloUtil} to access the sportello persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
*/
+ /**
+ * Returns the sportello where loginName = ? or throws a {@link it.mwg.sicilia.sue.NoSuchSportelloException} if it could not be found.
+ *
+ * @param loginName the login name
+ * @return the matching sportello
+ * @throws it.mwg.sicilia.sue.NoSuchSportelloException if a matching sportello could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public it.mwg.sicilia.sue.model.Sportello findByLoginName(
+ java.lang.String loginName)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ it.mwg.sicilia.sue.NoSuchSportelloException;
+
+ /**
+ * Returns the sportello where loginName = ? or returns null
if it could not be found. Uses the finder cache.
+ *
+ * @param loginName the login name
+ * @return the matching sportello, or null
if a matching sportello could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public it.mwg.sicilia.sue.model.Sportello fetchByLoginName(
+ java.lang.String loginName)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the sportello where loginName = ? or returns null
if it could not be found, optionally using the finder cache.
+ *
+ * @param loginName the login name
+ * @param retrieveFromCache whether to use the finder cache
+ * @return the matching sportello, or null
if a matching sportello could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public it.mwg.sicilia.sue.model.Sportello fetchByLoginName(
+ java.lang.String loginName, boolean retrieveFromCache)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes the sportello where loginName = ? from the database.
+ *
+ * @param loginName the login name
+ * @return the sportello that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ public it.mwg.sicilia.sue.model.Sportello removeByLoginName(
+ java.lang.String loginName)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ it.mwg.sicilia.sue.NoSuchSportelloException;
+
+ /**
+ * Returns the number of sportellos where loginName = ?.
+ *
+ * @param loginName the login name
+ * @return the number of matching sportellos
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByLoginName(java.lang.String loginName)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
/**
* Caches the sportello in the entity cache if it is enabled.
*
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloUtil.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloUtil.java
index b3be8d28..b0cc8a25 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloUtil.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/service/persistence/SportelloUtil.java
@@ -110,6 +110,74 @@ public class SportelloUtil {
return getPersistence().update(sportello, serviceContext);
}
+ /**
+ * Returns the sportello where loginName = ? or throws a {@link it.mwg.sicilia.sue.NoSuchSportelloException} if it could not be found.
+ *
+ * @param loginName the login name
+ * @return the matching sportello
+ * @throws it.mwg.sicilia.sue.NoSuchSportelloException if a matching sportello could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static it.mwg.sicilia.sue.model.Sportello findByLoginName(
+ java.lang.String loginName)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ it.mwg.sicilia.sue.NoSuchSportelloException {
+ return getPersistence().findByLoginName(loginName);
+ }
+
+ /**
+ * Returns the sportello where loginName = ? or returns null
if it could not be found. Uses the finder cache.
+ *
+ * @param loginName the login name
+ * @return the matching sportello, or null
if a matching sportello could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static it.mwg.sicilia.sue.model.Sportello fetchByLoginName(
+ java.lang.String loginName)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByLoginName(loginName);
+ }
+
+ /**
+ * Returns the sportello where loginName = ? or returns null
if it could not be found, optionally using the finder cache.
+ *
+ * @param loginName the login name
+ * @param retrieveFromCache whether to use the finder cache
+ * @return the matching sportello, or null
if a matching sportello could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static it.mwg.sicilia.sue.model.Sportello fetchByLoginName(
+ java.lang.String loginName, boolean retrieveFromCache)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByLoginName(loginName, retrieveFromCache);
+ }
+
+ /**
+ * Removes the sportello where loginName = ? from the database.
+ *
+ * @param loginName the login name
+ * @return the sportello that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ public static it.mwg.sicilia.sue.model.Sportello removeByLoginName(
+ java.lang.String loginName)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ it.mwg.sicilia.sue.NoSuchSportelloException {
+ return getPersistence().removeByLoginName(loginName);
+ }
+
+ /**
+ * Returns the number of sportellos where loginName = ?.
+ *
+ * @param loginName the login name
+ * @return the number of matching sportellos
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByLoginName(java.lang.String loginName)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByLoginName(loginName);
+ }
+
/**
* Caches the sportello in the entity cache if it is enabled.
*
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.properties b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.properties
index e69de29b..fed69cef 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.properties
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.properties
@@ -0,0 +1,3 @@
+IX_9824D813=sicilia_sue_Sportello.LoginName
+IX_9824D813=sicilia_sue_Sportello.loginName
+IX_F4E738BB=sicilia_sue_Sportello.userName
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.sql b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.sql
index e69de29b..924eb0ad 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.sql
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/indexes.sql
@@ -0,0 +1,2 @@
+create index IX_9824D813 on sicilia_sue_Sportello (loginName);
+create index IX_F4E738BB on sicilia_sue_Sportello (userName);
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/tables.sql b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/tables.sql
index bb349f0f..7116a560 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/tables.sql
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/sql/tables.sql
@@ -5,5 +5,8 @@ create table sicilia_sue_Sportello (
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
- modifiedDate DATE null
+ modifiedDate DATE null,
+ loginName VARCHAR(75) null,
+ password_ VARCHAR(75) null,
+ nonce VARCHAR(75) null
);
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
index ced55db3..a56874b8 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
@@ -14,5 +14,8 @@
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
index 351e85b8..dbf41d21 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
@@ -9,5 +9,8 @@
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
index 1dfb8bf5..1c997821 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
@@ -20,6 +20,11 @@
TIMESTAMP
+
+
+
+
+
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/common/Action.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/common/Action.java
index 1336daa7..071e786b 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/common/Action.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/common/Action.java
@@ -15,26 +15,32 @@ public class Action {
}
public String getName() {
+
return name;
}
public void setName(String name) {
+
this.name = name;
}
public String getDescription() {
+
return description;
}
public void setDescription(String description) {
+
this.description = description;
}
public String getMethod() {
+
return method;
}
public void setMethod(String method) {
+
this.method = method;
}
}
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/common/ApiResponse.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/common/ApiResponse.java
deleted file mode 100644
index 03892ab5..00000000
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/common/ApiResponse.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package it.mwg.sicilia.sue.api.common;
-
-import com.liferay.portal.kernel.json.JSONFactoryUtil;
-import com.liferay.portal.kernel.json.JSONSerializer;
-
-public class ApiResponse {
-
- private int code;
- private String message;
-
- private static final JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer().exclude("class");
-
- public ApiResponse(int code, String message) {
-
- this.setCode(code);
- this.setMessage(message);
- }
-
- public int getCode() {
- return code;
- }
-
- public void setCode(int code) {
- this.code = code;
- }
-
- public String getMessage() {
- return message;
- }
-
- public void setMessage(String message) {
- this.message = message;
- }
-
- @Override
- public String toString() {
- return serializer.serialize(this);
- }
-}
diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/ApiServlet.java b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/ApiServlet.java
index ea256770..22753952 100644
--- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/ApiServlet.java
+++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/ApiServlet.java
@@ -1,15 +1,33 @@
package it.mwg.sicilia.sue.api.v1;
-import it.mwg.sicilia.sue.api.common.ApiResponse;
+import it.mwg.sicilia.sue.NoSuchSportelloException;
+import it.mwg.sicilia.sue.model.Sportello;
+import it.mwg.sicilia.sue.service.SportelloLocalServiceUtil;
+import it.mwg.sicilia.sue.service.persistence.SportelloUtil;
import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.Serializable;
+import java.security.SecureRandom;
+import java.util.LinkedHashMap;
+import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import org.apache.commons.codec.digest.DigestUtils;
+
+import com.liferay.portal.kernel.exception.SystemException;
+import com.liferay.portal.kernel.json.JSONDeserializer;
+import com.liferay.portal.kernel.json.JSONFactoryUtil;
+import com.liferay.portal.kernel.log.Log;
+import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.servlet.ServletResponseUtil;
+import com.liferay.portal.kernel.util.ContentTypes;
+import com.liferay.portal.kernel.util.StringPool;
+import com.liferay.portal.kernel.util.Validator;
/**
* @author Manifattura Web Group Srl
@@ -17,27 +35,64 @@ import com.liferay.portal.kernel.servlet.ServletResponseUtil;
@SuppressWarnings("serial")
public class ApiServlet extends HttpServlet {
+ private static final Log _log = LogFactoryUtil.getLog(ApiServlet.class);
+ private static final JSONDeserializer