Sfoglia il codice sorgente

portal properties

master
Mattia Gosetto 3 anni fa
parent
commit
5093935ac8
  1. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java
  2. 413
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java
  3. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java
  4. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java
  5. 85
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DocumentiPraticaUtil.java
  6. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  7. 427
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java
  8. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  9. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  10. 27
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp
  11. 1
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-plugin-package.properties
  12. 36
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/AccessToken.java
  13. 5
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/ApiServlet.java
  14. 91
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Command.java
  15. 31
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Commands.java
  16. 8
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Parameters.java
  17. 7
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Response.java
  18. 4
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Status.java
  19. 27
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/bean/Application.java
  20. 27
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/bean/Document.java
  21. 130
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/Command.java
  22. 44
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/CommandList.java
  23. 33
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/CommandNop.java
  24. 56
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Applications.java
  25. 55
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Documents.java
  26. 49
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Login.java
  27. 145
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Manual.java
  28. 39
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Nop.java
  29. 45
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/parameter/Parameter.java
  30. 2
      liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/startup/Startup.java

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java

@ -317,6 +317,9 @@ public interface IntPraticaLocalService extends BaseLocalService,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.Map<java.lang.String, java.lang.String> getTipiProcedure();
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,

413
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java

@ -131,254 +131,258 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
_methodParameterTypes21 = new String[] { "java.lang.String" };
_methodName23 = "addIntPratica";
_methodName23 = "getTipiProcedure";
_methodParameterTypes23 = new String[] {
_methodParameterTypes23 = new String[] { };
_methodName24 = "addIntPratica";
_methodParameterTypes24 = new String[] {
"long", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName24 = "addIntPratica";
_methodName25 = "addIntPratica";
_methodParameterTypes24 = new String[] {
_methodParameterTypes25 = new String[] {
"long", "java.lang.String", "java.lang.String", "long",
"java.lang.String", "java.lang.String", "java.lang.String",
"boolean", "int", "java.util.Date",
"com.liferay.portal.service.ServiceContext"
};
_methodName25 = "deleteIntPratica";
_methodName26 = "deleteIntPratica";
_methodParameterTypes25 = new String[] {
_methodParameterTypes26 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "boolean"
};
_methodName26 = "cloneIntPratica";
_methodName27 = "cloneIntPratica";
_methodParameterTypes26 = new String[] {
_methodParameterTypes27 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName27 = "updateDelegati";
_methodName28 = "updateDelegati";
_methodParameterTypes27 = new String[] {
_methodParameterTypes28 = new String[] {
"long", "java.lang.String", "java.lang.String", "boolean"
};
_methodName28 = "findFascicoliNotProgetto";
_methodName29 = "findFascicoliNotProgetto";
_methodParameterTypes28 = new String[] { "int", "int" };
_methodParameterTypes29 = new String[] { "int", "int" };
_methodName29 = "countFascicoliNotProgetto";
_methodName30 = "countFascicoliNotProgetto";
_methodParameterTypes29 = new String[] { };
_methodParameterTypes30 = new String[] { };
_methodName30 = "addNumeroProgetto";
_methodName31 = "addNumeroProgetto";
_methodParameterTypes30 = new String[] { "long" };
_methodParameterTypes31 = new String[] { "long" };
_methodName31 = "sospendiPratica";
_methodName32 = "sospendiPratica";
_methodParameterTypes31 = new String[] { "long", "boolean" };
_methodParameterTypes32 = new String[] { "long", "boolean" };
_methodName32 = "cambiaTitolare";
_methodName33 = "cambiaTitolare";
_methodParameterTypes32 = new String[] {
_methodParameterTypes33 = new String[] {
"long", "long", "com.liferay.portal.service.ServiceContext"
};
_methodName33 = "updateStatoPratica";
_methodName34 = "updateStatoPratica";
_methodParameterTypes33 = new String[] { "long", "java.lang.String" };
_methodParameterTypes34 = new String[] { "long", "java.lang.String" };
_methodName34 = "findByC_UserId";
_methodName35 = "findByC_UserId";
_methodParameterTypes34 = new String[] { "long", "long", "int", "int" };
_methodParameterTypes35 = new String[] { "long", "long", "int", "int" };
_methodName35 = "countByC_UserId";
_methodName36 = "countByC_UserId";
_methodParameterTypes35 = new String[] { "long", "long" };
_methodParameterTypes36 = new String[] { "long", "long" };
_methodName36 = "updateStatus";
_methodName37 = "updateStatus";
_methodParameterTypes36 = new String[] { "long", "int" };
_methodParameterTypes37 = new String[] { "long", "int" };
_methodName37 = "findByCanAddFineLavori";
_methodName38 = "findByCanAddFineLavori";
_methodParameterTypes37 = new String[] {
_methodParameterTypes38 = new String[] {
"long", "java.lang.String", "int", "int"
};
_methodName38 = "countByCanAddFineLavori";
_methodName39 = "countByCanAddFineLavori";
_methodParameterTypes38 = new String[] { "long", "java.lang.String" };
_methodParameterTypes39 = new String[] { "long", "java.lang.String" };
_methodName39 = "findByCanAddCollaudo";
_methodName40 = "findByCanAddCollaudo";
_methodParameterTypes39 = new String[] {
_methodParameterTypes40 = new String[] {
"long", "java.lang.String", "int", "int"
};
_methodName40 = "countByCanAddCollaudo";
_methodName41 = "countByCanAddCollaudo";
_methodParameterTypes40 = new String[] { "long", "java.lang.String" };
_methodParameterTypes41 = new String[] { "long", "java.lang.String" };
_methodName41 = "search";
_methodName42 = "search";
_methodParameterTypes41 = new String[] { "java.util.List", "int", "int" };
_methodParameterTypes42 = new String[] { "java.util.List", "int", "int" };
_methodName42 = "countSearch";
_methodName43 = "countSearch";
_methodParameterTypes42 = new String[] { "java.util.List" };
_methodParameterTypes43 = new String[] { "java.util.List" };
_methodName43 = "searchWithIntPraticaId";
_methodName44 = "searchWithIntPraticaId";
_methodParameterTypes43 = new String[] {
_methodParameterTypes44 = new String[] {
"java.util.List", "long", "int", "int"
};
_methodName44 = "allegaFileAnnullamento";
_methodName45 = "allegaFileAnnullamento";
_methodParameterTypes44 = new String[] {
_methodParameterTypes45 = new String[] {
"long", "byte[][]", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName45 = "generateFileAnnullamento";
_methodName46 = "generateFileAnnullamento";
_methodParameterTypes45 = new String[] {
_methodParameterTypes46 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName46 = "deleteFileAnnullamento";
_methodName47 = "deleteFileAnnullamento";
_methodParameterTypes46 = new String[] { "long" };
_methodParameterTypes47 = new String[] { "long" };
_methodName47 = "completeAnnullamento";
_methodName48 = "completeAnnullamento";
_methodParameterTypes47 = new String[] { "long" };
_methodParameterTypes48 = new String[] { "long" };
_methodName48 = "cambiaIstruttore";
_methodName49 = "cambiaIstruttore";
_methodParameterTypes48 = new String[] { "long", "long", "long" };
_methodParameterTypes49 = new String[] { "long", "long", "long" };
_methodName49 = "countCaricoLavoroCF";
_methodName50 = "countCaricoLavoroCF";
_methodParameterTypes49 = new String[] {
_methodParameterTypes50 = new String[] {
"long", "java.lang.String", "java.lang.Long[][]"
};
_methodName50 = "countCaricoLavoroIstruttore";
_methodName51 = "countCaricoLavoroIstruttore";
_methodParameterTypes50 = new String[] { "long", "java.lang.String" };
_methodParameterTypes51 = new String[] { "long", "java.lang.String" };
_methodName51 = "generateReportPratica";
_methodName52 = "generateReportPratica";
_methodParameterTypes51 = new String[] {
_methodParameterTypes52 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long"
};
_methodName52 = "updateModifiedDate";
_methodName53 = "updateModifiedDate";
_methodParameterTypes52 = new String[] { "long", "java.util.Date" };
_methodParameterTypes53 = new String[] { "long", "java.util.Date" };
_methodName53 = "countAutorizzazione";
_methodName54 = "countAutorizzazione";
_methodParameterTypes53 = new String[] {
_methodParameterTypes54 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName54 = "countSanatorie";
_methodName55 = "countSanatorie";
_methodParameterTypes54 = new String[] {
_methodParameterTypes55 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName55 = "countOpereMinoreImportanza";
_methodName56 = "countOpereMinoreImportanza";
_methodParameterTypes55 = new String[] {
_methodParameterTypes56 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName56 = "countDeposito";
_methodName57 = "countDeposito";
_methodParameterTypes56 = new String[] {
_methodParameterTypes57 = new String[] {
"java.util.Date", "java.util.Date", "long", "boolean"
};
_methodName57 = "countVidimate";
_methodName58 = "countVidimate";
_methodParameterTypes57 = new String[] {
_methodParameterTypes58 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String",
"boolean"
};
_methodName58 = "countControllo";
_methodName59 = "countControllo";
_methodParameterTypes58 = new String[] {
_methodParameterTypes59 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String",
"boolean"
};
_methodName59 = "riparaWorkflow";
_methodName60 = "riparaWorkflow";
_methodParameterTypes59 = new String[] { };
_methodParameterTypes60 = new String[] { };
_methodName60 = "reIndexFascicolo";
_methodName61 = "reIndexFascicolo";
_methodParameterTypes60 = new String[] {
_methodParameterTypes61 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long"
};
_methodName61 = "reIndexFasciolo";
_methodParameterTypes61 = new String[] { "java.lang.String", "long" };
_methodName62 = "reIndexFasciolo";
_methodParameterTypes62 = new String[] { "long", "long" };
_methodParameterTypes62 = new String[] { "java.lang.String", "long" };
_methodName63 = "findByNumeroProgetto";
_methodName63 = "reIndexFasciolo";
_methodParameterTypes63 = new String[] { "java.lang.String" };
_methodParameterTypes63 = new String[] { "long", "long" };
_methodName64 = "findByTerritorioId";
_methodName64 = "findByNumeroProgetto";
_methodParameterTypes64 = new String[] { "long" };
_methodParameterTypes64 = new String[] { "java.lang.String" };
_methodName65 = "reportTempisticheIstruttorieAvvisiAutorizzazioni";
_methodName65 = "findByTerritorioId";
_methodParameterTypes65 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String"
};
_methodParameterTypes65 = new String[] { "long" };
_methodName66 = "reportPraticheVidimate";
_methodName66 = "reportTempisticheIstruttorieAvvisiAutorizzazioni";
_methodParameterTypes66 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String"
};
_methodName67 = "countIngressiAutorizzazioni";
_methodName67 = "reportPraticheVidimate";
_methodParameterTypes67 = new String[] {
"java.util.Date", "java.util.Date", "long"
"java.util.Date", "java.util.Date", "long", "java.lang.String"
};
_methodName68 = "countIngressiDepositi";
_methodName68 = "countIngressiAutorizzazioni";
_methodParameterTypes68 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName69 = "countIngressiCO";
_methodName69 = "countIngressiDepositi";
_methodParameterTypes69 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName70 = "getOrganizationByIntPraticaId";
_methodName70 = "countIngressiCO";
_methodParameterTypes70 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName71 = "getOrganizationByIntPraticaId";
_methodParameterTypes70 = new String[] { "long" };
_methodParameterTypes71 = new String[] { "long" };
}
@Override
@ -1081,6 +1085,29 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throw new UnsupportedOperationException();
}
@Override
public java.util.Map<java.lang.String, java.lang.String> getTipiProcedure() {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName23,
_methodParameterTypes23, new Object[] { });
}
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 (java.util.Map<java.lang.String, java.lang.String>)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,
@ -1090,8 +1117,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName23,
_methodParameterTypes23,
returnObj = _invokableLocalService.invokeMethod(_methodName24,
_methodParameterTypes24,
new Object[] {
territorioId,
@ -1135,8 +1162,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName24,
_methodParameterTypes24,
returnObj = _invokableLocalService.invokeMethod(_methodName25,
_methodParameterTypes25,
new Object[] {
userId,
@ -1192,8 +1219,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName25,
_methodParameterTypes25,
returnObj = _invokableLocalService.invokeMethod(_methodName26,
_methodParameterTypes26,
new Object[] {
ClpSerializer.translateInput(intPratica),
@ -1232,8 +1259,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName26,
_methodParameterTypes26,
returnObj = _invokableLocalService.invokeMethod(_methodName27,
_methodParameterTypes27,
new Object[] {
intPraticaId,
@ -1273,8 +1300,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName27,
_methodParameterTypes27,
returnObj = _invokableLocalService.invokeMethod(_methodName28,
_methodParameterTypes28,
new Object[] {
intPraticaId,
@ -1316,8 +1343,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName28,
_methodParameterTypes28, new Object[] { start, end });
returnObj = _invokableLocalService.invokeMethod(_methodName29,
_methodParameterTypes29, new Object[] { start, end });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1344,8 +1371,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName29,
_methodParameterTypes29, new Object[] { });
returnObj = _invokableLocalService.invokeMethod(_methodName30,
_methodParameterTypes30, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1374,8 +1401,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName30,
_methodParameterTypes30, new Object[] { intPraticaId });
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1408,8 +1435,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31,
returnObj = _invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32,
new Object[] { intPraticaId, sospesa });
}
catch (Throwable t) {
@ -1444,8 +1471,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32,
returnObj = _invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33,
new Object[] {
intPraticaId,
@ -1485,8 +1512,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33,
returnObj = _invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes34,
new Object[] {
intPraticaId,
@ -1523,8 +1550,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes34,
returnObj = _invokableLocalService.invokeMethod(_methodName35,
_methodParameterTypes35,
new Object[] { companyId, userId, start, end });
}
catch (Throwable t) {
@ -1552,8 +1579,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName35,
_methodParameterTypes35, new Object[] { companyId, userId });
returnObj = _invokableLocalService.invokeMethod(_methodName36,
_methodParameterTypes36, new Object[] { companyId, userId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1579,8 +1606,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName36,
_methodParameterTypes36, new Object[] { intPraticaId, status });
_invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes37, new Object[] { intPraticaId, status });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1611,8 +1638,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes37,
returnObj = _invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes38,
new Object[] {
companyId,
@ -1654,8 +1681,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes38,
returnObj = _invokableLocalService.invokeMethod(_methodName39,
_methodParameterTypes39,
new Object[] {
companyId,
@ -1693,8 +1720,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName39,
_methodParameterTypes39,
returnObj = _invokableLocalService.invokeMethod(_methodName40,
_methodParameterTypes40,
new Object[] {
companyId,
@ -1736,8 +1763,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName40,
_methodParameterTypes40,
returnObj = _invokableLocalService.invokeMethod(_methodName41,
_methodParameterTypes41,
new Object[] {
companyId,
@ -1774,8 +1801,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName41,
_methodParameterTypes41,
returnObj = _invokableLocalService.invokeMethod(_methodName42,
_methodParameterTypes42,
new Object[] {
ClpSerializer.translateInput(groupIds),
@ -1809,8 +1836,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName42,
_methodParameterTypes42,
returnObj = _invokableLocalService.invokeMethod(_methodName43,
_methodParameterTypes43,
new Object[] { ClpSerializer.translateInput(groupIds) });
}
catch (Throwable t) {
@ -1839,8 +1866,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName43,
_methodParameterTypes43,
returnObj = _invokableLocalService.invokeMethod(_methodName44,
_methodParameterTypes44,
new Object[] {
ClpSerializer.translateInput(groupIds),
@ -1881,8 +1908,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName44,
_methodParameterTypes44,
returnObj = _invokableLocalService.invokeMethod(_methodName45,
_methodParameterTypes45,
new Object[] {
intPraticaId,
@ -1932,8 +1959,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName45,
_methodParameterTypes45,
returnObj = _invokableLocalService.invokeMethod(_methodName46,
_methodParameterTypes46,
new Object[] {
intPraticaId,
@ -1972,8 +1999,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName46,
_methodParameterTypes46,
_invokableLocalService.invokeMethod(_methodName47,
_methodParameterTypes47,
new Object[] { docPraticaAnnullamentoId });
}
catch (Throwable t) {
@ -2002,8 +2029,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName47,
_methodParameterTypes47, new Object[] { intPraticaId });
_invokableLocalService.invokeMethod(_methodName48,
_methodParameterTypes48, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2032,8 +2059,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName48,
_methodParameterTypes48,
_invokableLocalService.invokeMethod(_methodName49,
_methodParameterTypes49,
new Object[] { intPraticaId, controlloPraticaId, istruttoreId });
}
catch (Throwable t) {
@ -2065,8 +2092,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName49,
_methodParameterTypes49,
returnObj = _invokableLocalService.invokeMethod(_methodName50,
_methodParameterTypes50,
new Object[] {
ispettoreId,
@ -2105,8 +2132,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName50,
_methodParameterTypes50,
returnObj = _invokableLocalService.invokeMethod(_methodName51,
_methodParameterTypes51,
new Object[] {
ispettoreId,
@ -2140,8 +2167,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName51,
_methodParameterTypes51,
returnObj = _invokableLocalService.invokeMethod(_methodName52,
_methodParameterTypes52,
new Object[] {
ClpSerializer.translateInput(intPratica),
@ -2179,8 +2206,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName52,
_methodParameterTypes52,
returnObj = _invokableLocalService.invokeMethod(_methodName53,
_methodParameterTypes53,
new Object[] {
intPraticaId,
@ -2217,8 +2244,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName53,
_methodParameterTypes53,
returnObj = _invokableLocalService.invokeMethod(_methodName54,
_methodParameterTypes54,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2253,8 +2280,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName54,
_methodParameterTypes54,
returnObj = _invokableLocalService.invokeMethod(_methodName55,
_methodParameterTypes55,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2289,8 +2316,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName55,
_methodParameterTypes55,
returnObj = _invokableLocalService.invokeMethod(_methodName56,
_methodParameterTypes56,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2325,8 +2352,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName56,
_methodParameterTypes56,
returnObj = _invokableLocalService.invokeMethod(_methodName57,
_methodParameterTypes57,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2363,8 +2390,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName57,
_methodParameterTypes57,
returnObj = _invokableLocalService.invokeMethod(_methodName58,
_methodParameterTypes58,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2404,8 +2431,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName58,
_methodParameterTypes58,
returnObj = _invokableLocalService.invokeMethod(_methodName59,
_methodParameterTypes59,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2443,8 +2470,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName59,
_methodParameterTypes59, new Object[] { });
returnObj = _invokableLocalService.invokeMethod(_methodName60,
_methodParameterTypes60, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2469,8 +2496,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
public void reIndexFascicolo(
it.tref.liferay.portos.bo.model.IntPratica intPratica, long companyId) {
try {
_invokableLocalService.invokeMethod(_methodName60,
_methodParameterTypes60,
_invokableLocalService.invokeMethod(_methodName61,
_methodParameterTypes61,
new Object[] { ClpSerializer.translateInput(intPratica), companyId });
}
catch (Throwable t) {
@ -2490,8 +2517,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
public void reIndexFasciolo(java.lang.String numeroProgetto, long companyId)
throws com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName61,
_methodParameterTypes61,
_invokableLocalService.invokeMethod(_methodName62,
_methodParameterTypes62,
new Object[] {
ClpSerializer.translateInput(numeroProgetto),
@ -2520,8 +2547,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
try {
_invokableLocalService.invokeMethod(_methodName62,
_methodParameterTypes62,
_invokableLocalService.invokeMethod(_methodName63,
_methodParameterTypes63,
new Object[] { intPraticaId, companyId });
}
catch (Throwable t) {
@ -2552,8 +2579,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName63,
_methodParameterTypes63,
returnObj = _invokableLocalService.invokeMethod(_methodName64,
_methodParameterTypes64,
new Object[] { ClpSerializer.translateInput(numeroProgetto) });
}
catch (Throwable t) {
@ -2582,8 +2609,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName64,
_methodParameterTypes64, new Object[] { territorioId });
returnObj = _invokableLocalService.invokeMethod(_methodName65,
_methodParameterTypes65, new Object[] { territorioId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2612,8 +2639,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName65,
_methodParameterTypes65,
returnObj = _invokableLocalService.invokeMethod(_methodName66,
_methodParameterTypes66,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2651,8 +2678,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName66,
_methodParameterTypes66,
returnObj = _invokableLocalService.invokeMethod(_methodName67,
_methodParameterTypes67,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2689,8 +2716,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName67,
_methodParameterTypes67,
returnObj = _invokableLocalService.invokeMethod(_methodName68,
_methodParameterTypes68,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2725,8 +2752,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName68,
_methodParameterTypes68,
returnObj = _invokableLocalService.invokeMethod(_methodName69,
_methodParameterTypes69,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2761,8 +2788,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName69,
_methodParameterTypes69,
returnObj = _invokableLocalService.invokeMethod(_methodName70,
_methodParameterTypes70,
new Object[] {
ClpSerializer.translateInput(dtMin),
@ -2798,8 +2825,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName70,
_methodParameterTypes70, new Object[] { intPraticaId });
returnObj = _invokableLocalService.invokeMethod(_methodName71,
_methodParameterTypes71, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -2965,4 +2992,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService {
private String[] _methodParameterTypes69;
private String _methodName70;
private String[] _methodParameterTypes70;
private String _methodName71;
private String[] _methodParameterTypes71;
}

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java

@ -342,6 +342,10 @@ public class IntPraticaLocalServiceUtil {
return getService().invokeMethod(name, parameterTypes, arguments);
}
public static java.util.Map<java.lang.String, java.lang.String> getTipiProcedure() {
return getService().getTipiProcedure();
}
public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,
com.liferay.portal.service.ServiceContext serviceContext)

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java

@ -362,6 +362,11 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService,
arguments);
}
@Override
public java.util.Map<java.lang.String, java.lang.String> getTipiProcedure() {
return _intPraticaLocalService.getTipiProcedure();
}
@Override
public it.tref.liferay.portos.bo.model.IntPratica addIntPratica(
long territorioId, java.lang.String tipoProcedura,

85
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DocumentiPraticaUtil.java

@ -5,7 +5,12 @@ import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.shared.util.Constants;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
public class DocumentiPraticaUtil {
@ -73,49 +78,57 @@ public class DocumentiPraticaUtil {
public static final String TIPOLOGIA_ALLEGATO_VARIAZIONE_SOGGETTO = "VS";
public static final String TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO = "AI";
public static List<String> getDocObbligatori() {
List<String> docObbligatori = new ArrayList<String>();
return docObbligatori;
private static final List<String> docDomanda = new ArrayList<String>();
private static final Map<String, String> tipiDocDomanda = new LinkedHashMap<String, String>();
private static void addDocDomanda(String tipo) {
docDomanda.add(tipo);
tipiDocDomanda.put(tipo, LanguageUtil.get(LocaleUtil.ITALIAN, "label-documenti-tipologia-" + tipo));
}
public static List<String> getDocObbligatoriCheck() {
List<String> docObbligatoriCheck = new ArrayList<String>();
return docObbligatoriCheck;
static {
addDocDomanda(TIPOLOGIA_ALLEGATO_A01);
addDocDomanda(TIPOLOGIA_ALLEGATO_A02);
addDocDomanda(TIPOLOGIA_ALLEGATO_A03);
addDocDomanda(TIPOLOGIA_ALLEGATO_A04);
addDocDomanda(TIPOLOGIA_ALLEGATO_A08);
addDocDomanda(TIPOLOGIA_ALLEGATO_A09);
addDocDomanda(TIPOLOGIA_ALLEGATO_A10);
addDocDomanda(TIPOLOGIA_ALLEGATO_A11);
addDocDomanda(TIPOLOGIA_ALLEGATO_A12);
addDocDomanda(TIPOLOGIA_ALLEGATO_A13);
addDocDomanda(TIPOLOGIA_ALLEGATO_A15);
addDocDomanda(TIPOLOGIA_ALLEGATO_A16);
addDocDomanda(TIPOLOGIA_ALLEGATO_A17);
addDocDomanda(TIPOLOGIA_ALLEGATO_A18);
addDocDomanda(TIPOLOGIA_ALLEGATO_A19);
addDocDomanda(TIPOLOGIA_ALLEGATO_A20);
addDocDomanda(TIPOLOGIA_ALLEGATO_A21);
addDocDomanda(TIPOLOGIA_ALLEGATO_A24);
addDocDomanda(TIPOLOGIA_ALLEGATO_A25);
addDocDomanda(TIPOLOGIA_ALLEGATO_A26);
addDocDomanda(TIPOLOGIA_ALLEGATO_A27);
addDocDomanda(TIPOLOGIA_ALLEGATO_A28);
addDocDomanda(TIPOLOGIA_ALLEGATO_A29);
addDocDomanda(TIPOLOGIA_ALLEGATO_A30);
addDocDomanda(TIPOLOGIA_ALLEGATO_ALTRI);
addDocDomanda(TIPOLOGIA_ALLEGATO_DELEGA);
}
@SuppressWarnings("serial")
public static List<String> getDocDomanda() {
return docDomanda;
}
return new ArrayList<String>() {
{
add(TIPOLOGIA_ALLEGATO_A01);
add(TIPOLOGIA_ALLEGATO_A02);
add(TIPOLOGIA_ALLEGATO_A03);
add(TIPOLOGIA_ALLEGATO_A04);
add(TIPOLOGIA_ALLEGATO_A08);
add(TIPOLOGIA_ALLEGATO_A09);
add(TIPOLOGIA_ALLEGATO_A10);
add(TIPOLOGIA_ALLEGATO_A11);
add(TIPOLOGIA_ALLEGATO_A12);
add(TIPOLOGIA_ALLEGATO_A13);
add(TIPOLOGIA_ALLEGATO_A15);
add(TIPOLOGIA_ALLEGATO_A16);
add(TIPOLOGIA_ALLEGATO_A17);
add(TIPOLOGIA_ALLEGATO_A18);
add(TIPOLOGIA_ALLEGATO_A19);
add(TIPOLOGIA_ALLEGATO_A20);
add(TIPOLOGIA_ALLEGATO_A21);
add(TIPOLOGIA_ALLEGATO_A24);
add(TIPOLOGIA_ALLEGATO_A25);
add(TIPOLOGIA_ALLEGATO_A26);
add(TIPOLOGIA_ALLEGATO_A27);
add(TIPOLOGIA_ALLEGATO_A28);
add(TIPOLOGIA_ALLEGATO_A29);
add(TIPOLOGIA_ALLEGATO_A30);
add(TIPOLOGIA_ALLEGATO_ALTRI);
add(TIPOLOGIA_ALLEGATO_DELEGA);
public static Map<String, String> getTipiDocDomanda() {
return tipiDocDomanda;
}
};
public static List<String> getDocObbligatori() {
return new ArrayList<String>();
}
public static List<String> getDocObbligatoriCheck() {
return new ArrayList<String>();
}
public static List<String> getDocObbligatoriDomanda(IntPratica intPratica, DettPratica dettPratica) {

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties

@ -1267,7 +1267,7 @@ tipo-procedura-b1 = B1 - Interventi di “minore rilevanza” zone 1-2 ed interv
tipo-procedura-c = C - Interventi “privi di rilevanza“ D.D.G. 344/20 all. A - lett. C
label_procedura_P0 = 1
tipo_procedura_P0 = Autorizzazione per interventi su Beni Culturali (D.Lgs. 42/2004 artt. 21, 31, 48, 49, 50)
tipo_procedura_P0 = Autorizzazione per interventi su Beni Culturali (D.Lgs. 42/2004 art. 21, 31, 48, 49, 50)
label_procedura_P1 = 1.1
tipo_procedura_P1 = Interventi su Beni Culturali mobili
label_procedura_P2 = 1.2

427
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java

@ -130,264 +130,268 @@ public class IntPraticaLocalServiceClpInvoker {
_methodParameterTypes173 = new String[] { "java.lang.String" };
_methodName178 = "addIntPratica";
_methodName179 = "getTipiProcedure";
_methodParameterTypes178 = new String[] {
_methodParameterTypes179 = new String[] { };
_methodName180 = "addIntPratica";
_methodParameterTypes180 = new String[] {
"long", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName179 = "addIntPratica";
_methodName181 = "addIntPratica";
_methodParameterTypes179 = new String[] {
_methodParameterTypes181 = new String[] {
"long", "java.lang.String", "java.lang.String", "long",
"java.lang.String", "java.lang.String", "java.lang.String",
"boolean", "int", "java.util.Date",
"com.liferay.portal.service.ServiceContext"
};
_methodName180 = "deleteIntPratica";
_methodName182 = "deleteIntPratica";
_methodParameterTypes180 = new String[] {
_methodParameterTypes182 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "boolean"
};
_methodName181 = "deleteIntPratica";
_methodName183 = "deleteIntPratica";
_methodParameterTypes181 = new String[] {
_methodParameterTypes183 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica"
};
_methodName182 = "cloneIntPratica";
_methodName184 = "cloneIntPratica";
_methodParameterTypes182 = new String[] {
_methodParameterTypes184 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName184 = "updateDelegati";
_methodName186 = "updateDelegati";
_methodParameterTypes184 = new String[] {
_methodParameterTypes186 = new String[] {
"long", "java.lang.String", "java.lang.String", "boolean"
};
_methodName185 = "fetchIntPratica";
_methodName187 = "fetchIntPratica";
_methodParameterTypes185 = new String[] { "long" };
_methodParameterTypes187 = new String[] { "long" };
_methodName186 = "findFascicoliNotProgetto";
_methodName188 = "findFascicoliNotProgetto";
_methodParameterTypes186 = new String[] { "int", "int" };
_methodParameterTypes188 = new String[] { "int", "int" };
_methodName187 = "countFascicoliNotProgetto";
_methodName189 = "countFascicoliNotProgetto";
_methodParameterTypes187 = new String[] { };
_methodParameterTypes189 = new String[] { };
_methodName189 = "addNumeroProgetto";
_methodName191 = "addNumeroProgetto";
_methodParameterTypes189 = new String[] { "long" };
_methodParameterTypes191 = new String[] { "long" };
_methodName190 = "sospendiPratica";
_methodName192 = "sospendiPratica";
_methodParameterTypes190 = new String[] { "long", "boolean" };
_methodParameterTypes192 = new String[] { "long", "boolean" };
_methodName191 = "cambiaTitolare";
_methodName193 = "cambiaTitolare";
_methodParameterTypes191 = new String[] {
_methodParameterTypes193 = new String[] {
"long", "long", "com.liferay.portal.service.ServiceContext"
};
_methodName192 = "updateStatoPratica";
_methodName194 = "updateStatoPratica";
_methodParameterTypes192 = new String[] { "long", "java.lang.String" };
_methodParameterTypes194 = new String[] { "long", "java.lang.String" };
_methodName193 = "findByC_UserId";
_methodName195 = "findByC_UserId";
_methodParameterTypes193 = new String[] { "long", "long", "int", "int" };
_methodParameterTypes195 = new String[] { "long", "long", "int", "int" };
_methodName194 = "countByC_UserId";
_methodName196 = "countByC_UserId";
_methodParameterTypes194 = new String[] { "long", "long" };
_methodParameterTypes196 = new String[] { "long", "long" };
_methodName195 = "updateStatus";
_methodName197 = "updateStatus";
_methodParameterTypes195 = new String[] { "long", "int" };
_methodParameterTypes197 = new String[] { "long", "int" };
_methodName196 = "findByCanAddFineLavori";
_methodName198 = "findByCanAddFineLavori";
_methodParameterTypes196 = new String[] {
_methodParameterTypes198 = new String[] {
"long", "java.lang.String", "int", "int"
};
_methodName197 = "countByCanAddFineLavori";
_methodName199 = "countByCanAddFineLavori";
_methodParameterTypes197 = new String[] { "long", "java.lang.String" };
_methodParameterTypes199 = new String[] { "long", "java.lang.String" };
_methodName199 = "findByCanAddCollaudo";
_methodName201 = "findByCanAddCollaudo";
_methodParameterTypes199 = new String[] {
_methodParameterTypes201 = new String[] {
"long", "java.lang.String", "int", "int"
};
_methodName200 = "countByCanAddCollaudo";
_methodName202 = "countByCanAddCollaudo";
_methodParameterTypes200 = new String[] { "long", "java.lang.String" };
_methodParameterTypes202 = new String[] { "long", "java.lang.String" };
_methodName201 = "search";
_methodName203 = "search";
_methodParameterTypes201 = new String[] { "java.util.List", "int", "int" };
_methodParameterTypes203 = new String[] { "java.util.List", "int", "int" };
_methodName202 = "countSearch";
_methodName204 = "countSearch";
_methodParameterTypes202 = new String[] { "java.util.List" };
_methodParameterTypes204 = new String[] { "java.util.List" };
_methodName203 = "searchWithIntPraticaId";
_methodName205 = "searchWithIntPraticaId";
_methodParameterTypes203 = new String[] {
_methodParameterTypes205 = new String[] {
"java.util.List", "long", "int", "int"
};
_methodName204 = "allegaFileAnnullamento";
_methodName206 = "allegaFileAnnullamento";
_methodParameterTypes204 = new String[] {
_methodParameterTypes206 = new String[] {
"long", "byte[][]", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName205 = "generateFileAnnullamento";
_methodName207 = "generateFileAnnullamento";
_methodParameterTypes205 = new String[] {
_methodParameterTypes207 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName206 = "deleteFileAnnullamento";
_methodName208 = "deleteFileAnnullamento";
_methodParameterTypes206 = new String[] { "long" };
_methodParameterTypes208 = new String[] { "long" };
_methodName207 = "completeAnnullamento";
_methodName209 = "completeAnnullamento";
_methodParameterTypes207 = new String[] { "long" };
_methodParameterTypes209 = new String[] { "long" };
_methodName208 = "cambiaIstruttore";
_methodName210 = "cambiaIstruttore";
_methodParameterTypes208 = new String[] { "long", "long", "long" };
_methodParameterTypes210 = new String[] { "long", "long", "long" };
_methodName209 = "countCaricoLavoroCF";
_methodName211 = "countCaricoLavoroCF";
_methodParameterTypes209 = new String[] {
_methodParameterTypes211 = new String[] {
"long", "java.lang.String", "java.lang.Long[][]"
};
_methodName210 = "countCaricoLavoroIstruttore";
_methodName212 = "countCaricoLavoroIstruttore";
_methodParameterTypes210 = new String[] { "long", "java.lang.String" };
_methodParameterTypes212 = new String[] { "long", "java.lang.String" };
_methodName211 = "generateReportPratica";
_methodName213 = "generateReportPratica";
_methodParameterTypes211 = new String[] {
_methodParameterTypes213 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long"
};
_methodName212 = "updateModifiedDate";
_methodName214 = "updateModifiedDate";
_methodParameterTypes212 = new String[] { "long", "java.util.Date" };
_methodParameterTypes214 = new String[] { "long", "java.util.Date" };
_methodName213 = "countAutorizzazione";
_methodName215 = "countAutorizzazione";
_methodParameterTypes213 = new String[] {
_methodParameterTypes215 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName214 = "countSanatorie";
_methodName216 = "countSanatorie";
_methodParameterTypes214 = new String[] {
_methodParameterTypes216 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName215 = "countOpereMinoreImportanza";
_methodName217 = "countOpereMinoreImportanza";
_methodParameterTypes215 = new String[] {
_methodParameterTypes217 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName216 = "countDeposito";
_methodName218 = "countDeposito";
_methodParameterTypes216 = new String[] {
_methodParameterTypes218 = new String[] {
"java.util.Date", "java.util.Date", "long", "boolean"
};
_methodName217 = "countVidimate";
_methodName219 = "countVidimate";
_methodParameterTypes217 = new String[] {
_methodParameterTypes219 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String",
"boolean"
};
_methodName218 = "countControllo";
_methodName220 = "countControllo";
_methodParameterTypes218 = new String[] {
_methodParameterTypes220 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String",
"boolean"
};
_methodName219 = "riparaWorkflow";
_methodName221 = "riparaWorkflow";
_methodParameterTypes219 = new String[] { };
_methodParameterTypes221 = new String[] { };
_methodName220 = "reIndexFascicolo";
_methodName222 = "reIndexFascicolo";
_methodParameterTypes220 = new String[] {
_methodParameterTypes222 = new String[] {
"it.tref.liferay.portos.bo.model.IntPratica", "long"
};
_methodName221 = "reIndexFasciolo";
_methodName223 = "reIndexFasciolo";
_methodParameterTypes221 = new String[] { "java.lang.String", "long" };
_methodParameterTypes223 = new String[] { "java.lang.String", "long" };
_methodName222 = "reIndexFasciolo";
_methodName224 = "reIndexFasciolo";
_methodParameterTypes222 = new String[] { "long", "long" };
_methodParameterTypes224 = new String[] { "long", "long" };
_methodName223 = "findByNumeroProgetto";
_methodName225 = "findByNumeroProgetto";
_methodParameterTypes223 = new String[] { "java.lang.String" };
_methodParameterTypes225 = new String[] { "java.lang.String" };
_methodName224 = "findByTerritorioId";
_methodName226 = "findByTerritorioId";
_methodParameterTypes224 = new String[] { "long" };
_methodParameterTypes226 = new String[] { "long" };
_methodName225 = "reportTempisticheIstruttorieAvvisiAutorizzazioni";
_methodName227 = "reportTempisticheIstruttorieAvvisiAutorizzazioni";
_methodParameterTypes225 = new String[] {
_methodParameterTypes227 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String"
};
_methodName226 = "reportPraticheVidimate";
_methodName228 = "reportPraticheVidimate";
_methodParameterTypes226 = new String[] {
_methodParameterTypes228 = new String[] {
"java.util.Date", "java.util.Date", "long", "java.lang.String"
};
_methodName227 = "countIngressiAutorizzazioni";
_methodName229 = "countIngressiAutorizzazioni";
_methodParameterTypes227 = new String[] {
_methodParameterTypes229 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName228 = "countIngressiDepositi";
_methodName230 = "countIngressiDepositi";
_methodParameterTypes228 = new String[] {
_methodParameterTypes230 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName229 = "countIngressiCO";
_methodName231 = "countIngressiCO";
_methodParameterTypes229 = new String[] {
_methodParameterTypes231 = new String[] {
"java.util.Date", "java.util.Date", "long"
};
_methodName230 = "getOrganizationByIntPraticaId";
_methodName232 = "getOrganizationByIntPraticaId";
_methodParameterTypes230 = new String[] { "long" };
_methodParameterTypes232 = new String[] { "long" };
}
public Object invokeMethod(String name, String[] parameterTypes,
@ -515,15 +519,20 @@ public class IntPraticaLocalServiceClpInvoker {
return null;
}
if (_methodName178.equals(name) &&
Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) {
if (_methodName179.equals(name) &&
Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) {
return IntPraticaLocalServiceUtil.getTipiProcedure();
}
if (_methodName180.equals(name) &&
Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) {
return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1],
(com.liferay.portal.service.ServiceContext)arguments[2]);
}
if (_methodName179.equals(name) &&
Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) {
if (_methodName181.equals(name) &&
Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) {
return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
((Long)arguments[3]).longValue(),
@ -535,170 +544,170 @@ public class IntPraticaLocalServiceClpInvoker {
(com.liferay.portal.service.ServiceContext)arguments[10]);
}
if (_methodName180.equals(name) &&
Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) {
if (_methodName182.equals(name) &&
Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) {
return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0],
((Boolean)arguments[1]).booleanValue());
}
if (_methodName181.equals(name) &&
Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) {
if (_methodName183.equals(name) &&
Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) {
return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]);
}
if (_methodName182.equals(name) &&
Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) {
if (_methodName184.equals(name) &&
Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) {
return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[1]);
}
if (_methodName184.equals(name) &&
Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) {
if (_methodName186.equals(name) &&
Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) {
return IntPraticaLocalServiceUtil.updateDelegati(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
((Boolean)arguments[3]).booleanValue());
}
if (_methodName185.equals(name) &&
Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) {
if (_methodName187.equals(name) &&
Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) {
return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue());
}
if (_methodName186.equals(name) &&
Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) {
if (_methodName188.equals(name) &&
Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) {
return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(),
((Integer)arguments[1]).intValue());
}
if (_methodName187.equals(name) &&
Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) {
if (_methodName189.equals(name) &&
Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) {
return IntPraticaLocalServiceUtil.countFascicoliNotProgetto();
}
if (_methodName189.equals(name) &&
Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) {
if (_methodName191.equals(name) &&
Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) {
return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue());
}
if (_methodName190.equals(name) &&
Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) {
if (_methodName192.equals(name) &&
Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) {
return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue());
}
if (_methodName191.equals(name) &&
Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) {
if (_methodName193.equals(name) &&
Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) {
return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[2]);
}
if (_methodName192.equals(name) &&
Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) {
if (_methodName194.equals(name) &&
Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) {
return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName193.equals(name) &&
Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) {
if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName194.equals(name) &&
Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) {
if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) {
if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue());
return null;
}
if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
if (_methodName199.equals(name) &&
Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((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 IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName200.equals(name) &&
Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) {
if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
return IntPraticaLocalServiceUtil.search((java.util.List<java.lang.Long>)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
return IntPraticaLocalServiceUtil.countSearch((java.util.List<java.lang.Long>)arguments[0]);
}
if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List<java.lang.Long>)arguments[0],
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
return IntPraticaLocalServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3],
(com.liferay.portal.service.ServiceContext)arguments[4]);
}
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
if (_methodName207.equals(name) &&
Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[1]);
}
if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
if (_methodName208.equals(name) &&
Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue());
return null;
}
if (_methodName207.equals(name) &&
Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
if (_methodName209.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue());
return null;
}
if (_methodName208.equals(name) &&
Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
if (_methodName210.equals(name) &&
Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) {
IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue());
@ -706,144 +715,144 @@ public class IntPraticaLocalServiceClpInvoker {
return null;
}
if (_methodName209.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
if (_methodName211.equals(name) &&
Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.Long[])arguments[2]);
}
if (_methodName210.equals(name) &&
Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) {
if (_methodName212.equals(name) &&
Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName211.equals(name) &&
Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
if (_methodName213.equals(name) &&
Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) {
return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0],
((Long)arguments[1]).longValue());
}
if (_methodName212.equals(name) &&
Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(),
(java.util.Date)arguments[1]);
}
if (_methodName213.equals(name) &&
Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) {
if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
if (_methodName218.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) {
return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
((Boolean)arguments[3]).booleanValue());
}
if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
if (_methodName219.equals(name) &&
Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) {
return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3],
((Boolean)arguments[4]).booleanValue());
}
if (_methodName218.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) {
if (_methodName220.equals(name) &&
Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) {
return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3],
((Boolean)arguments[4]).booleanValue());
}
if (_methodName219.equals(name) &&
Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) {
if (_methodName221.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) {
return IntPraticaLocalServiceUtil.riparaWorkflow();
}
if (_methodName220.equals(name) &&
Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) {
if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0],
((Long)arguments[1]).longValue());
return null;
}
if (_methodName221.equals(name) &&
Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) {
if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0],
((Long)arguments[1]).longValue());
return null;
}
if (_methodName222.equals(name) &&
Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) {
if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
return null;
}
if (_methodName223.equals(name) &&
Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) {
if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]);
}
if (_methodName224.equals(name) &&
Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) {
if (_methodName226.equals(name) &&
Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) {
return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue());
}
if (_methodName225.equals(name) &&
Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) {
if (_methodName227.equals(name) &&
Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) {
return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3]);
}
if (_methodName226.equals(name) &&
Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) {
if (_methodName228.equals(name) &&
Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) {
return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3]);
}
if (_methodName227.equals(name) &&
Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) {
if (_methodName229.equals(name) &&
Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) {
return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName228.equals(name) &&
Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) {
if (_methodName230.equals(name) &&
Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) {
return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName229.equals(name) &&
Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) {
if (_methodName231.equals(name) &&
Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) {
return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0],
(java.util.Date)arguments[1], ((Long)arguments[2]).longValue());
}
if (_methodName230.equals(name) &&
Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) {
if (_methodName232.equals(name) &&
Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) {
return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue());
}
@ -894,8 +903,6 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes172;
private String _methodName173;
private String[] _methodParameterTypes173;
private String _methodName178;
private String[] _methodParameterTypes178;
private String _methodName179;
private String[] _methodParameterTypes179;
private String _methodName180;
@ -904,18 +911,18 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes181;
private String _methodName182;
private String[] _methodParameterTypes182;
private String _methodName183;
private String[] _methodParameterTypes183;
private String _methodName184;
private String[] _methodParameterTypes184;
private String _methodName185;
private String[] _methodParameterTypes185;
private String _methodName186;
private String[] _methodParameterTypes186;
private String _methodName187;
private String[] _methodParameterTypes187;
private String _methodName188;
private String[] _methodParameterTypes188;
private String _methodName189;
private String[] _methodParameterTypes189;
private String _methodName190;
private String[] _methodParameterTypes190;
private String _methodName191;
private String[] _methodParameterTypes191;
private String _methodName192;
@ -930,10 +937,10 @@ public class IntPraticaLocalServiceClpInvoker {
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;
@ -994,4 +1001,8 @@ public class IntPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes229;
private String _methodName230;
private String[] _methodParameterTypes230;
private String _methodName231;
private String[] _methodParameterTypes231;
private String _methodName232;
private String[] _methodParameterTypes232;
}

29
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java

@ -59,6 +59,7 @@ import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
@ -129,6 +130,34 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
private static Log _log = LogFactoryUtil.getLog(IntPraticaLocalServiceImpl.class);
private static final Map<String, String> tipiProcedure = new LinkedHashMap<>();
static {
putTipoProcedura(Constants.PROCEDURA_P0);
putTipoProcedura(Constants.PROCEDURA_P1);
putTipoProcedura(Constants.PROCEDURA_P2);
putTipoProcedura(Constants.PROCEDURA_P3);
putTipoProcedura(Constants.PROCEDURA_P4);
putTipoProcedura(Constants.PROCEDURA_P5);
putTipoProcedura(Constants.PROCEDURA_P6);
putTipoProcedura(Constants.PROCEDURA_P7);
putTipoProcedura(Constants.PROCEDURA_P8);
putTipoProcedura(Constants.PROCEDURA_P9);
putTipoProcedura(Constants.PROCEDURA_P10);
}
private static void putTipoProcedura(String tipo) {
tipiProcedure.put(tipo, LanguageUtil.get(LocaleUtil.ITALIAN, "tipo_procedura_" + tipo));
_log.info(LanguageUtil.get(LocaleUtil.ITALIAN, "tipo_procedura_" + tipo));
}
@Override
public Map<String, String> getTipiProcedure() {
return tipiProcedure;
}
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext)

4
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=3150
build.date=1624282940532
build.number=3177
build.date=1624283931035
build.auto.upgrade=true
##

27
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp

@ -1,3 +1,4 @@
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<% String formName = ParamUtil.getString(request, "formName","fm"); %>
@ -23,19 +24,21 @@
<div class="row add-new-project__row">
<div class="col-xs-12 add-new-project__procedura">
<aui:field-wrapper label="">
<aui:input label="tipo_procedura_P0" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P0 %>" type="radio" value="<%= Constants.PROCEDURA_P0 %>" showRequiredLabel="true" disabled="true">
<aui:validator name="required"></aui:validator>
<%
for (Entry<String, String> procedura : IntPraticaLocalServiceUtil.getTipiProcedure()
.entrySet()) {
String tipo = procedura.getKey();
String label = procedura.getValue();
String nomeProcedura = LanguageUtil.get(pageContext, "label_procedura_"+tipo) + " " + label;
%>
<aui:input label="<%= nomeProcedura %>" name="tipoProcedura"
id='<%= "tipo_procedura_" + tipo %>' type="radio" value="<%= tipo %>"
showRequiredLabel="true" disabled="true">
<aui:validator name="required" />
</aui:input>
<aui:input label="tipo_procedura_P1" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P1 %>" type="radio" value="<%= Constants.PROCEDURA_P1 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P2" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P2 %>" type="radio" value="<%= Constants.PROCEDURA_P2 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P3" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P3 %>" type="radio" value="<%= Constants.PROCEDURA_P3 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P4" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P4 %>" type="radio" value="<%= Constants.PROCEDURA_P4 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P5" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P5 %>" type="radio" value="<%= Constants.PROCEDURA_P5 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P6" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P6 %>" type="radio" value="<%= Constants.PROCEDURA_P6 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P7" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P7 %>" type="radio" value="<%= Constants.PROCEDURA_P7 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P8" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P8 %>" type="radio" value="<%= Constants.PROCEDURA_P8 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P9" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P9 %>" type="radio" value="<%= Constants.PROCEDURA_P9 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P10" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P10 %>" type="radio" value="<%= Constants.PROCEDURA_P10 %>" showRequiredLabel="true" disabled="true" />
<%
}
%>
</aui:field-wrapper>
</div>
</div>

1
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/liferay-plugin-package.properties

@ -12,6 +12,7 @@ liferay-versions=6.2.0+
portal-dependency-jars=\
commons-codec.jar,\
commons-io.jar,\
commons-lang.jar,\
jstl-api.jar,\
jstl-impl.jar
portal-dependency-tlds=c.tld

36
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/AccessToken.java

@ -30,10 +30,9 @@ public class AccessToken {
private static final long MAX_AGE = 15 * 60 * 1000;
private static final String TIMESTAMP = "timestamp";
private static final String SPORTELLO_ID = "sportelloId";
private static final String SALT = "salt";
private static final String SECRET = "secret";
private static final String TIMESTAMP = "t";
private static final String SPORTELLO_ID = "i";
private static final String SALT = "s";
public AccessToken(Sportello sportello) throws Exception {
@ -43,40 +42,35 @@ public class AccessToken {
payload.put(TIMESTAMP, timestamp);
payload.put(SPORTELLO_ID, sportelloId);
SecureRandom rnd = new SecureRandom();
payload.put(SALT, rnd.nextLong());
payload.put(SECRET, ApiSettingLocalServiceUtil.get(sportello.getCompanyId(), ApiConstants.API_SECRET));
String key = ApiSettingLocalServiceUtil.get(sportello.getCompanyId(), ApiConstants.API_PUBLIC_KEY);
payload.put(SALT, rnd.nextInt());
KeyFactory keyFactory = KeyFactory.getInstance("RSA");
X509EncodedKeySpec pubKeySpec = new X509EncodedKeySpec(Base64.decode(key));
PublicKey publicKey = keyFactory.generatePublic(pubKeySpec);
String key = ApiSettingLocalServiceUtil.get(sportello.getCompanyId(), ApiConstants.API_PRIVATE_KEY);
PKCS8EncodedKeySpec privKeySpec = new PKCS8EncodedKeySpec(Base64.decode(key));
PrivateKey privateKey = keyFactory.generatePrivate(privKeySpec);
Cipher cipher = Cipher.getInstance("RSA");
cipher.init(Cipher.ENCRYPT_MODE, publicKey);
token = Base64.encode(cipher.doFinal(payload.toString().getBytes()));
cipher.init(Cipher.ENCRYPT_MODE, privateKey);
token = Base64.encode(cipher.doFinal(payload.toString().getBytes()), 0);
}
public AccessToken(String token) throws Exception {
KeyFactory keyFactory = KeyFactory.getInstance("RSA");
String key = ApiSettingLocalServiceUtil.get(20155, ApiConstants.API_PRIVATE_KEY);
PKCS8EncodedKeySpec privKeySpec = new PKCS8EncodedKeySpec(Base64.decode(key));
PrivateKey privateKey = keyFactory.generatePrivate(privKeySpec);
// TODO companyId
String key = ApiSettingLocalServiceUtil.get(20155, ApiConstants.API_PUBLIC_KEY);
X509EncodedKeySpec pubKeySpec = new X509EncodedKeySpec(Base64.decode(key));
PublicKey publicKey = keyFactory.generatePublic(pubKeySpec);
Cipher cipher = Cipher.getInstance("RSA");
cipher.init(Cipher.DECRYPT_MODE, privateKey);
String json;
cipher.init(Cipher.DECRYPT_MODE, publicKey);
JSONObject payload;
try {
json = new String(cipher.doFinal(Base64.decode(token)));
String json = new String(cipher.doFinal(Base64.decode(token)));
payload = JSONFactoryUtil.createJSONObject(json);
} catch (Exception e) {
throw new InvalidTokenException();
}
if (!ApiSettingLocalServiceUtil.get(20155, ApiConstants.API_SECRET).equals(payload.getString(SECRET))) {
throw new InvalidTokenException();
}
timestamp = payload.getLong(TIMESTAMP);
long current = new Date().getTime();
if ((current < timestamp) || (current - timestamp > MAX_AGE)) {
System.out.println("**** current = " + current + ", timestamp = " + timestamp);
throw new ExpiredTokenException();
}
sportelloId = payload.getLong(SPORTELLO_ID);

5
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/ApiServlet.java

@ -1,5 +1,8 @@
package it.mwg.sicilia.sue.api.v1;
import it.mwg.sicilia.sue.api.v1.command.Command;
import it.mwg.sicilia.sue.api.v1.command.CommandList;
import java.io.IOException;
import javax.servlet.ServletException;
@ -47,7 +50,7 @@ public class ApiServlet extends HttpServlet {
} else {
pathInfo = request.getPathInfo().substring(1);
}
Command command = Commands.get(pathInfo);
Command command = CommandList.get(pathInfo);
if (Validator.isNull(command)) {
response.sendError(HttpServletResponse.SC_NOT_FOUND);
} else if (!command.getMethods().contains(request.getMethod())) {

91
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Command.java

@ -1,91 +0,0 @@
package it.mwg.sicilia.sue.api.v1;
import it.mwg.sicilia.sue.ExpiredTokenException;
import it.mwg.sicilia.sue.InactiveSportelloException;
import it.mwg.sicilia.sue.InvalidTokenException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
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;
public abstract class Command {
protected static final Log _log = LogFactoryUtil.getLog(Command.class);
protected Map<String, Serializable> parameters = null;
private String verb;
private List<String> methods;
private String description;
private static final JSONDeserializer<Map<String, Serializable>> deserializer = JSONFactoryUtil
.createJSONDeserializer();
public Command(String verb, String description, String... methods) {
this.verb = verb;
this.methods = Arrays.asList(methods);
this.description = description;
}
public String getVerb() {
return verb;
}
public List<String> getMethods() {
return methods;
}
public String getDescription() {
return description;
}
public abstract void run(HttpServletRequest request, HttpServletResponse response) throws Exception;
protected Map<String, Serializable> readParameters(HttpServletRequest request) throws IOException {
parameters = deserializer.deserialize(new InputStreamReader(request.getInputStream()));
return parameters;
}
protected void setJson(HttpServletResponse response) {
response.setContentType(ContentTypes.APPLICATION_JSON);
response.setCharacterEncoding(StringPool.UTF8);
}
protected boolean verifyAccessToken(HttpServletResponse response, String encodedToken) {
try {
try {
new AccessToken(encodedToken);
} catch (InvalidTokenException e) {
ServletResponseUtil.write(response, Response.get(Status.INVALID_TOKEN));
} catch (ExpiredTokenException e) {
ServletResponseUtil.write(response, Response.get(Status.EXPIRED_TOKEN));
} catch (InactiveSportelloException e) {
ServletResponseUtil.write(response, Response.get(Status.INACTIVE_USER));
} catch (Exception e) {
ServletResponseUtil.write(response, Response.get(Status.SERVER_ERROR));
}
return true;
} catch (IOException e) {
return false;
}
}
}

31
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Commands.java

@ -1,31 +0,0 @@
package it.mwg.sicilia.sue.api.v1;
import it.mwg.sicilia.sue.api.v1.command.CommandLogin;
import it.mwg.sicilia.sue.api.v1.command.CommandNop;
import java.util.LinkedHashMap;
import java.util.Map;
import com.liferay.portal.kernel.servlet.HttpMethods;
import com.liferay.portal.kernel.util.StringPool;
public class Commands {
private static final Map<String, Command> commands = new LinkedHashMap<>();
static {
addCommand(new CommandNop(StringPool.BLANK, "NOP verifica la connettività senza eseguire operazioni",
HttpMethods.GET, HttpMethods.POST));
addCommand(new CommandLogin("login",
"Esegue l'accesso con nome email e password e restituisce un token di accesso", HttpMethods.POST));
}
private static void addCommand(Command command) {
commands.put(command.getVerb(), command);
}
public static Command get(String verb) {
return commands.get(verb);
}
}

8
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Parameters.java

@ -2,9 +2,15 @@ package it.mwg.sicilia.sue.api.v1;
public class Parameters {
public static final String APPLICATION = "application";
public static final String APPLICATIONS = "applications";
public static final String CODE = "code";
public static final String DESCRIPTION = "description";
public static final String DOCUMENTS = "documents";
public static final String PASSWORD = "password";
public static final String STATUS_CODE = "statusCode";
public static final String STATUS_MESSAGE = "statusMessage";
public static final String TOKEN = "token";
public static final String USER_NAME = "userName";
public static final String USERNAME = "username";
public static final String X_AUTH_TOKEN = "X-Auth-Token";
}

7
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Response.java

@ -7,11 +7,10 @@ import java.util.Map;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONSerializer;
import com.liferay.portal.kernel.util.Validator;
public class Response {
private static final JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer();
private static final JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer().exclude("*.class");
public static String get(int statusCode) throws IOException {
@ -23,9 +22,9 @@ public class Response {
Map<String, Serializable> map = new LinkedHashMap<>();
map.put(Parameters.STATUS_CODE, statusCode);
map.put(Parameters.STATUS_MESSAGE, Status.getStatusDescription(statusCode));
if (Validator.isNotNull(extraData)) {
if (null != extraData) {
map.putAll(extraData);
}
return serializer.serialize(map);
return serializer.serializeDeep(map);
}
}

4
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/Status.java

@ -11,7 +11,7 @@ public class Status {
public static final int INVALID_TOKEN = 3;
public static final int MALFORMED_REQUEST = 4;
public static final int SERVER_ERROR = 5;
public static final int WRONG_USER_NAME_OR_PASSWORD = 6;
public static final int WRONG_USERNAME_OR_PASSWORD = 6;
@SuppressWarnings("serial")
private static final Map<Integer, String> messages = new HashMap<Integer, String>() {
@ -22,7 +22,7 @@ public class Status {
put(INVALID_TOKEN, "Invalid token");
put(MALFORMED_REQUEST, "Malformed request");
put(SERVER_ERROR, "Internal server error");
put(WRONG_USER_NAME_OR_PASSWORD, "Wrong user name or password");
put(WRONG_USERNAME_OR_PASSWORD, "Wrong user name or password");
}
};

27
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/bean/Application.java

@ -0,0 +1,27 @@
package it.mwg.sicilia.sue.api.v1.bean;
import java.io.Serializable;
public class Application implements Serializable {
private static final long serialVersionUID = -5683688958577468949L;
private String code;
private String description;
public Application(String code, String description) {
this.code = code;
this.description = description;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
}

27
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/bean/Document.java

@ -0,0 +1,27 @@
package it.mwg.sicilia.sue.api.v1.bean;
import java.io.Serializable;
public class Document implements Serializable {
private static final long serialVersionUID = -5986191295042945520L;
private String code;
private String description;
public Document(String code, String description) {
this.code = code;
this.description = description;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
}

130
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/Command.java

@ -0,0 +1,130 @@
package it.mwg.sicilia.sue.api.v1.command;
import it.mwg.sicilia.sue.ExpiredTokenException;
import it.mwg.sicilia.sue.InactiveSportelloException;
import it.mwg.sicilia.sue.InvalidTokenException;
import it.mwg.sicilia.sue.api.v1.AccessToken;
import it.mwg.sicilia.sue.api.v1.Parameters;
import it.mwg.sicilia.sue.api.v1.Response;
import it.mwg.sicilia.sue.api.v1.Status;
import it.mwg.sicilia.sue.api.v1.parameter.Parameter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
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.HttpMethods;
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;
public abstract class Command {
protected static final Log _log = LogFactoryUtil.getLog(Command.class);
protected static final List<Parameter> EMPTY_PARAMETERS = new ArrayList<>();
protected Map<String, Serializable> parameters = null;
private String verb;
private List<String> methods;
private String description;
private static final String[] defaultMethods = { HttpMethods.POST };
private static final JSONDeserializer<Map<String, Serializable>> deserializer = JSONFactoryUtil
.createJSONDeserializer();
public Command(String verb, String description, String... methods) {
this.verb = verb;
this.methods = Arrays.asList(methods.length > 0 ? methods : defaultMethods);
this.description = description;
}
public String getVerb() {
return verb;
}
public List<String> getMethods() {
return methods;
}
public String getDescription() {
return description;
}
public abstract void run(HttpServletRequest request, HttpServletResponse response) throws Exception;
public abstract List<Parameter> getInputParameters();
public abstract List<Parameter> getOutputParameters();
public boolean isSecure() {
return true;
}
protected Map<String, Serializable> readParameters(HttpServletRequest request) throws IOException {
parameters = new HashMap<>();
if (request.getMethod().equals(HttpMethods.POST)) {
try {
parameters = deserializer.deserialize(new InputStreamReader(request.getInputStream()));
} catch (Exception e) {
}
} else if (request.getMethod().equals(HttpMethods.GET)) {
String token = request.getHeader(Parameters.X_AUTH_TOKEN);
if (Validator.isNotNull(token)) {
parameters.put(Parameters.TOKEN, token);
}
}
return parameters;
}
protected void setJson(HttpServletResponse response) {
response.setContentType(ContentTypes.APPLICATION_JSON);
response.setCharacterEncoding(StringPool.UTF8);
}
protected void setPlainText(HttpServletResponse response) {
response.setContentType(ContentTypes.TEXT_PLAIN_UTF8);
}
protected boolean verifyAccessToken(HttpServletRequest request, HttpServletResponse response) throws IOException {
setJson(response);
readParameters(request);
String token = (String) parameters.get(Parameters.TOKEN);
if (Validator.isNull(token)) {
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
} else {
try {
try {
new AccessToken(token);
} catch (InvalidTokenException e) {
ServletResponseUtil.write(response, Response.get(Status.INVALID_TOKEN));
} catch (ExpiredTokenException e) {
ServletResponseUtil.write(response, Response.get(Status.EXPIRED_TOKEN));
} catch (InactiveSportelloException e) {
ServletResponseUtil.write(response, Response.get(Status.INACTIVE_USER));
} catch (Exception e) {
ServletResponseUtil.write(response, Response.get(Status.SERVER_ERROR));
}
return true;
} catch (IOException e) {
}
}
return false;
}
}

44
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/CommandList.java

@ -0,0 +1,44 @@
package it.mwg.sicilia.sue.api.v1.command;
import it.mwg.sicilia.sue.api.v1.command.impl.Applications;
import it.mwg.sicilia.sue.api.v1.command.impl.Documents;
import it.mwg.sicilia.sue.api.v1.command.impl.Login;
import it.mwg.sicilia.sue.api.v1.command.impl.Manual;
import it.mwg.sicilia.sue.api.v1.command.impl.Nop;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import com.liferay.portal.kernel.servlet.HttpMethods;
import com.liferay.portal.kernel.util.StringPool;
public class CommandList {
private static final Map<String, Command> commands = new LinkedHashMap<>();
static {
addCommand(new Manual("manual", "Restituisce la documentazione dell'API generata automaticamente",
HttpMethods.GET, HttpMethods.POST));
addCommand(new Login("login", "Esegue l'accesso con nome email e password e restituisce un token di accesso"));
addCommand(new Applications("applications",
"Riceve l'elenco delle istanze valide contenenti codice e descrizione", HttpMethods.GET,
HttpMethods.POST));
addCommand(new Documents("documents",
"Riceve l'elenco dei documenti riconosciuti dal portale con codice e descrizione", HttpMethods.GET,
HttpMethods.POST));
addCommand(new Nop(StringPool.BLANK, "NOP verifica la connettività senza eseguire operazioni", HttpMethods.GET,
HttpMethods.POST));
}
private static void addCommand(Command command) {
commands.put(command.getVerb(), command);
}
public static Command get(String verb) {
return commands.get(verb);
}
public static Collection<Command> getList() {
return commands.values();
}
}

33
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/CommandNop.java

@ -1,33 +0,0 @@
package it.mwg.sicilia.sue.api.v1.command;
import it.mwg.sicilia.sue.api.v1.Command;
import it.mwg.sicilia.sue.api.v1.Parameters;
import it.mwg.sicilia.sue.api.v1.Response;
import it.mwg.sicilia.sue.api.v1.Status;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.util.Validator;
public class CommandNop extends Command {
public CommandNop(String verb, String description, String... methods) {
super(verb, description, methods);
}
@Override
public void run(HttpServletRequest request, HttpServletResponse response) throws Exception {
setJson(response);
readParameters(request);
String token = (String) parameters.get(Parameters.TOKEN);
if (Validator.isNull(token)) {
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
} else if (verifyAccessToken(response, token)) {
ServletResponseUtil.write(response, Response.get(Status.OK));
}
}
}

56
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Applications.java

@ -0,0 +1,56 @@
package it.mwg.sicilia.sue.api.v1.command.impl;
import it.mwg.sicilia.sue.api.v1.Parameters;
import it.mwg.sicilia.sue.api.v1.Response;
import it.mwg.sicilia.sue.api.v1.Status;
import it.mwg.sicilia.sue.api.v1.bean.Application;
import it.mwg.sicilia.sue.api.v1.command.Command;
import it.mwg.sicilia.sue.api.v1.parameter.Parameter;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.util.StringPool;
public class Applications extends Command {
public Applications(String verb, String description, String... methods) {
super(verb, description, methods);
}
@Override
public void run(HttpServletRequest request, HttpServletResponse response) throws Exception {
if (verifyAccessToken(request, response)) {
Map<String, String> procedure = IntPraticaLocalServiceUtil.getTipiProcedure();
List<Application> list = new ArrayList<>(procedure.size());
for (Entry<String, String> entry : procedure.entrySet()) {
list.add(new Application(entry.getKey(), entry.getValue().replaceAll("^[0-9\\.]+\\)\\s*",
StringPool.BLANK)));
}
Map<String, Serializable> result = new HashMap<>();
result.put(Parameters.APPLICATIONS, (Serializable) list);
ServletResponseUtil.write(response, Response.get(Status.OK, result));
}
}
@Override
public List<Parameter> getInputParameters() {
return EMPTY_PARAMETERS;
}
@Override
public List<Parameter> getOutputParameters() {
return EMPTY_PARAMETERS;
}
}

55
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Documents.java

@ -0,0 +1,55 @@
package it.mwg.sicilia.sue.api.v1.command.impl;
import it.mwg.sicilia.sue.api.v1.Parameters;
import it.mwg.sicilia.sue.api.v1.Response;
import it.mwg.sicilia.sue.api.v1.Status;
import it.mwg.sicilia.sue.api.v1.bean.Document;
import it.mwg.sicilia.sue.api.v1.command.Command;
import it.mwg.sicilia.sue.api.v1.parameter.Parameter;
import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.util.StringPool;
public class Documents extends Command {
public Documents(String verb, String description, String... methods) {
super(verb, description, methods);
}
@Override
public void run(HttpServletRequest request, HttpServletResponse response) throws Exception {
if (verifyAccessToken(request, response)) {
Map<String, String> documents = DocumentiPraticaUtil.getTipiDocDomanda();
List<Document> list = new ArrayList<>(documents.size());
for (Entry<String, String> entry : documents.entrySet()) {
list.add(new Document(entry.getKey(), entry.getValue()
.replaceAll("^A[0-9]+\\s*-\\s*", StringPool.BLANK)));
}
Map<String, Serializable> result = new HashMap<>();
result.put(Parameters.DOCUMENTS, (Serializable) list);
ServletResponseUtil.write(response, Response.get(Status.OK, result));
}
}
@Override
public List<Parameter> getInputParameters() {
return EMPTY_PARAMETERS;
}
@Override
public List<Parameter> getOutputParameters() {
return EMPTY_PARAMETERS;
}
}

49
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/CommandLogin.java → liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Login.java

@ -1,16 +1,19 @@
package it.mwg.sicilia.sue.api.v1.command;
package it.mwg.sicilia.sue.api.v1.command.impl;
import it.mwg.sicilia.sue.NoSuchSportelloException;
import it.mwg.sicilia.sue.api.v1.AccessToken;
import it.mwg.sicilia.sue.api.v1.Command;
import it.mwg.sicilia.sue.api.v1.Parameters;
import it.mwg.sicilia.sue.api.v1.Response;
import it.mwg.sicilia.sue.api.v1.Status;
import it.mwg.sicilia.sue.api.v1.command.Command;
import it.mwg.sicilia.sue.api.v1.parameter.Parameter;
import it.mwg.sicilia.sue.model.Sportello;
import it.mwg.sicilia.sue.service.SportelloLocalServiceUtil;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
@ -20,10 +23,23 @@ import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.util.Validator;
public class CommandLogin extends Command {
public class Login extends Command {
public CommandLogin(String verb, String description, String... methods) {
@SuppressWarnings("serial")
private static final List<Parameter> INPUT_PARAMETERS = new ArrayList<Parameter>() {
{
add(new Parameter(Parameters.USERNAME, Parameter.TYPES.STRING, "nome utente"));
add(new Parameter(Parameters.PASSWORD, Parameter.TYPES.STRING, "password"));
}
};
@SuppressWarnings("serial")
private static final List<Parameter> OUTPUT_PARAMETERS = new ArrayList<Parameter>() {
{
add(new Parameter(Parameters.TOKEN, Parameter.TYPES.STRING, "token di autorizzazione"));
}
};
public Login(String verb, String description, String... methods) {
super(verb, description, methods);
}
@ -32,7 +48,7 @@ public class CommandLogin extends Command {
setJson(response);
readParameters(request);
String userName = (String) parameters.get(Parameters.USER_NAME);
String userName = (String) parameters.get(Parameters.USERNAME);
String password = (String) parameters.get(Parameters.PASSWORD);
if (Validator.isNull(userName) || Validator.isNull(password)) {
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
@ -43,14 +59,29 @@ public class CommandLogin extends Command {
} catch (NoSuchSportelloException | SystemException e) {
}
if (Validator.isNull(sportello) || !sportello.checkPassword(password)) {
ServletResponseUtil.write(response, Response.get(Status.WRONG_USER_NAME_OR_PASSWORD));
ServletResponseUtil.write(response, Response.get(Status.WRONG_USERNAME_OR_PASSWORD));
} else if (!sportello.isAttivo()) {
ServletResponseUtil.write(response, Response.get(Status.INACTIVE_USER));
} else {
Map<String, Serializable> extraData = new HashMap<>();
extraData.put(Parameters.TOKEN, new AccessToken(sportello).getToken());
ServletResponseUtil.write(response, Response.get(Status.OK, extraData));
Map<String, Serializable> result = new HashMap<>();
result.put(Parameters.TOKEN, new AccessToken(sportello).getToken());
ServletResponseUtil.write(response, Response.get(Status.OK, result));
}
}
}
@Override
public boolean isSecure() {
return false;
}
@Override
public List<Parameter> getInputParameters() {
return INPUT_PARAMETERS;
}
@Override
public List<Parameter> getOutputParameters() {
return OUTPUT_PARAMETERS;
}
}

145
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Manual.java

@ -0,0 +1,145 @@
package it.mwg.sicilia.sue.api.v1.command.impl;
import it.mwg.sicilia.sue.api.v1.Parameters;
import it.mwg.sicilia.sue.api.v1.command.Command;
import it.mwg.sicilia.sue.api.v1.command.CommandList;
import it.mwg.sicilia.sue.api.v1.parameter.Parameter;
import java.io.Serializable;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONSerializer;
import com.liferay.portal.kernel.servlet.HttpMethods;
import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.util.Http;
import com.liferay.portal.kernel.util.StringPool;
public class Manual extends Command {
private static String baseUrl = null;
private static final JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer();
public Manual(String verb, String description, String... methods) {
super(verb, description, methods);
}
@Override
public void run(HttpServletRequest request, HttpServletResponse response) throws Exception {
StringBuilder result = new StringBuilder();
Iterator<Command> commands = CommandList.getList().iterator();
while (commands.hasNext()) {
Command command = commands.next();
result.append("Comando: /").append(command.getVerb());
if (command.isSecure()) {
result.append(" [T]");
}
result.append(StringPool.NEW_LINE);
result.append(command.getDescription()).append(StringPool.NEW_LINE);
result.append("Metodi: ").append(StringUtils.join(command.getMethods(), StringPool.COMMA_AND_SPACE))
.append(StringPool.NEW_LINE);
result.append("Parametri:");
List<Parameter> parameters = command.getInputParameters();
if (parameters.isEmpty()) {
result.append(" Nessuno\n");
} else {
result.append(StringPool.NEW_LINE);
for (Parameter parameter : parameters) {
result.append(StringPool.TAB).append(parameter.getName());
if (parameter.isRequired()) {
result.append(StringPool.STAR);
}
result.append(" (").append(parameter.getType().toString()).append(") - ")
.append(parameter.getDescription()).append(StringPool.NEW_LINE);
}
}
parameters = command.getOutputParameters();
if (!parameters.isEmpty()) {
result.append("Restituisce:\n");
for (Parameter parameter : parameters) {
result.append(StringPool.TAB).append(parameter.getName()).append(" (")
.append(parameter.getType().toString()).append(") - ").append(parameter.getDescription())
.append(StringPool.NEW_LINE);
}
}
result.append("Esempio:\n").append(getCurlExample(command, getBaseUrl(request)));
if (commands.hasNext()) {
result.append("================================================================================\n");
}
}
result.append("\n[Note]\n[T] = Richiede token di autenticazione: header di richiesta \"")
.append(Parameters.X_AUTH_TOKEN).append("\" oppure parametro \"").append(Parameters.TOKEN)
.append("\"\n * = Parametro obbligatorio\n");
setPlainText(response);
ServletResponseUtil.write(response, result.toString());
}
private String getCurlExample(Command command, String baseUrl) {
StringBuilder sb = new StringBuilder();
sb.append("\tcurl ");
if (command.isSecure()) {
sb.append("--header \"").append(Parameters.X_AUTH_TOKEN).append(": $TOKEN\"").append(" \\\n\t\t");
}
if (command.getMethods().contains(HttpMethods.GET)) {
} else {
sb.append("--header \"Content-Type: application/json; charset=UTF-8\" \\\n\t\t");
sb.append("--request POST \\\n\t\t");
Map<String, Serializable> data = new LinkedHashMap<>();
for (Parameter parameter : command.getInputParameters()) {
if (parameter.isRequired()) {
if (parameter.getType().equals(Parameter.TYPES.STRING)) {
data.put(parameter.getName(), parameter.getName());
}
}
}
if (data.size() > 0) {
sb.append("--data '").append(serializer.serialize(data)).append("' \\\n\t\t");
}
}
sb.append(StringPool.APOSTROPHE).append(baseUrl).append(command.getVerb()).append(StringPool.APOSTROPHE)
.append(StringPool.NEW_LINE);
return sb.toString();
}
private String getBaseUrl(HttpServletRequest request) {
if (null == baseUrl) {
StringBuilder sb = new StringBuilder();
sb.append(request.isSecure() ? Http.HTTPS_WITH_SLASH : Http.HTTP_WITH_SLASH);
sb.append(request.getServerName());
if ((request.isSecure() && (request.getServerPort() != Http.HTTPS_PORT))
|| (!request.isSecure() && (request.getServerPort() != Http.HTTP_PORT))) {
sb.append(StringPool.COLON).append(request.getServerPort());
}
sb.append(request.getContextPath()).append(request.getServletPath()).append(StringPool.FORWARD_SLASH);
baseUrl = sb.toString();
}
return baseUrl;
}
@Override
public boolean isSecure() {
return false;
}
@Override
public List<Parameter> getInputParameters() {
return EMPTY_PARAMETERS;
}
@Override
public List<Parameter> getOutputParameters() {
return EMPTY_PARAMETERS;
}
}

39
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/command/impl/Nop.java

@ -0,0 +1,39 @@
package it.mwg.sicilia.sue.api.v1.command.impl;
import it.mwg.sicilia.sue.api.v1.Response;
import it.mwg.sicilia.sue.api.v1.Status;
import it.mwg.sicilia.sue.api.v1.command.Command;
import it.mwg.sicilia.sue.api.v1.parameter.Parameter;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.liferay.portal.kernel.servlet.ServletResponseUtil;
public class Nop extends Command {
public Nop(String verb, String description, String... methods) {
super(verb, description, methods);
}
@Override
public void run(HttpServletRequest request, HttpServletResponse response) throws Exception {
if (verifyAccessToken(request, response)) {
ServletResponseUtil.write(response, Response.get(Status.OK));
}
}
@Override
public List<Parameter> getInputParameters() {
return EMPTY_PARAMETERS;
}
@Override
public List<Parameter> getOutputParameters() {
return EMPTY_PARAMETERS;
}
}

45
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/api/v1/parameter/Parameter.java

@ -0,0 +1,45 @@
package it.mwg.sicilia.sue.api.v1.parameter;
public class Parameter {
private String name;
private TYPES type;
private String description;
private boolean required;
public Parameter(String name, TYPES type, String description, boolean required) {
this.name = name;
this.type = type;
this.description = description;
this.required = required;
}
public Parameter(String name, TYPES type, String description) {
this.name = name;
this.type = type;
this.description = description;
this.required = true;
}
public String getName() {
return name;
}
public TYPES getType() {
return type;
}
public String getDescription() {
return description;
}
public boolean isRequired() {
return required;
}
public static enum TYPES {
ARRAY, BOOLEAN, STRING
}
}

2
liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/src/it/mwg/sicilia/sue/startup/Startup.java

@ -59,7 +59,7 @@ public class Startup extends SimpleAction {
} catch (NoSuchAlgorithmException e) {
}
if (Validator.isNotNull(generator)) {
generator.initialize(4096);
generator.initialize(1536);
KeyPair pair = generator.generateKeyPair();
try {
ApiSettingLocalServiceUtil.set(companyId, ApiConstants.API_PRIVATE_KEY,

Caricamento…
Annulla
Salva