diff --git a/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar index 376d4367..afe8e198 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar index 3c9f38e7..6e6b96f4 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml index c968ecd9..f679b091 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml index b3ac7ad6..9cb4463d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/ivy.xml @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath index 98a15bfe..e9e3cdd2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath @@ -20,5 +20,6 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar index ed4689b4..271b49f0 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/hms-taglib-hook-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar index 03002516..71714a3c 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml index 3418e33a..539f71b4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml @@ -4,1698 +4,31 @@ Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. portos_bo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DuplicateProvincia CodiceProvincia @@ -1704,12 +37,10 @@ NoSuchProvincia CSVFileNotFound CSVFileFormat - CodiceBelfiore CodiceComune CodiceIstat Denominazione DuplicateComune - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/AllegatoManuale.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/AllegatoManuale.xml new file mode 100644 index 00000000..ebb2e41a --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/AllegatoManuale.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Asseverazione.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Asseverazione.xml new file mode 100644 index 00000000..88703929 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Asseverazione.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Avviso.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Avviso.xml new file mode 100644 index 00000000..89960f40 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Avviso.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Collaudo.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Collaudo.xml new file mode 100644 index 00000000..8075e5db --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Collaudo.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Comune.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Comune.xml new file mode 100644 index 00000000..9bda9df8 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Comune.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Comunicazione.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Comunicazione.xml new file mode 100644 index 00000000..469e8d26 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Comunicazione.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Configurazione.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Configurazione.xml new file mode 100644 index 00000000..afb4f39f --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Configurazione.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/ControlloPratica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/ControlloPratica.xml new file mode 100644 index 00000000..8f4ad9b1 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/ControlloPratica.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Delega.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Delega.xml new file mode 100644 index 00000000..0545bbdf --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Delega.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DettPratica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DettPratica.xml new file mode 100644 index 00000000..d33fdd48 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DettPratica.xml @@ -0,0 +1,284 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DocAggiuntiva.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DocAggiuntiva.xml new file mode 100644 index 00000000..555275fd --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DocAggiuntiva.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DocPratica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DocPratica.xml new file mode 100644 index 00000000..8675601b --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/DocPratica.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/FineLavori.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/FineLavori.xml new file mode 100644 index 00000000..82a11485 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/FineLavori.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/HistoryWorkflowAction.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/HistoryWorkflowAction.xml new file mode 100644 index 00000000..51b93095 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/HistoryWorkflowAction.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/IntPratica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/IntPratica.xml new file mode 100644 index 00000000..0606b1e9 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/IntPratica.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Pagamento.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Pagamento.xml new file mode 100644 index 00000000..755cf62e --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Pagamento.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/ParereGeologo.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/ParereGeologo.xml new file mode 100644 index 00000000..03af2dd3 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/ParereGeologo.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/PraticaAttenzionata.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/PraticaAttenzionata.xml new file mode 100644 index 00000000..53489ac4 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/PraticaAttenzionata.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Provincia.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Provincia.xml new file mode 100644 index 00000000..583c318b --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Provincia.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Soggetto.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Soggetto.xml new file mode 100644 index 00000000..081ba345 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Soggetto.xml @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Sorteggio.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Sorteggio.xml new file mode 100644 index 00000000..d3845c73 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Sorteggio.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/StoricoSoggettoPratica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/StoricoSoggettoPratica.xml new file mode 100644 index 00000000..12eaa8e8 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/StoricoSoggettoPratica.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Tempistica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Tempistica.xml new file mode 100644 index 00000000..20832e0b --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Tempistica.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Territorio.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Territorio.xml new file mode 100644 index 00000000..4d8a2c2f --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml.d/Territorio.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java index f59fa701..3a86280b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java @@ -341,6 +341,12 @@ public interface IntPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public java.util.List getIntPraticas( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java index 7e5267fd..1e49b5d8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java @@ -143,318 +143,324 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { _methodParameterTypes25 = new String[] { "long", "java.util.Date" }; - _methodName26 = "addIntPratica"; + _methodName26 = "getIntPraticas"; _methodParameterTypes26 = new String[] { - "long", "java.lang.String", "boolean", - "com.liferay.portal.service.ServiceContext" + "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName27 = "addIntPratica"; _methodParameterTypes27 = new String[] { - "long", "java.lang.String", + "long", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; _methodName28 = "addIntPratica"; _methodParameterTypes28 = new String[] { + "long", "java.lang.String", + "com.liferay.portal.service.ServiceContext" + }; + + _methodName29 = "addIntPratica"; + + _methodParameterTypes29 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName29 = "deleteIntPratica"; + _methodName30 = "deleteIntPratica"; - _methodParameterTypes29 = new String[] { + _methodParameterTypes30 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName30 = "cloneIntPratica"; + _methodName31 = "cloneIntPratica"; - _methodParameterTypes30 = new String[] { + _methodParameterTypes31 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName31 = "updateDelegati"; + _methodName32 = "updateDelegati"; - _methodParameterTypes31 = new String[] { + _methodParameterTypes32 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName32 = "findFascicoliNotProgetto"; + _methodName33 = "findFascicoliNotProgetto"; - _methodParameterTypes32 = new String[] { "int", "int" }; + _methodParameterTypes33 = new String[] { "int", "int" }; - _methodName33 = "countFascicoliNotProgetto"; + _methodName34 = "countFascicoliNotProgetto"; - _methodParameterTypes33 = new String[] { }; + _methodParameterTypes34 = new String[] { }; - _methodName34 = "addNumeroProgetto"; + _methodName35 = "addNumeroProgetto"; - _methodParameterTypes34 = new String[] { "long" }; + _methodParameterTypes35 = new String[] { "long" }; - _methodName35 = "sospendiPratica"; + _methodName36 = "sospendiPratica"; - _methodParameterTypes35 = new String[] { "long", "boolean" }; + _methodParameterTypes36 = new String[] { "long", "boolean" }; - _methodName36 = "cambiaTitolare"; + _methodName37 = "cambiaTitolare"; - _methodParameterTypes36 = new String[] { + _methodParameterTypes37 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName37 = "updateStatoPratica"; + _methodName38 = "updateStatoPratica"; - _methodParameterTypes37 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes38 = new String[] { "long", "java.lang.String" }; - _methodName38 = "updateIntPraticaSorteggio"; + _methodName39 = "updateIntPraticaSorteggio"; - _methodParameterTypes38 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes39 = new String[] { "long", "java.util.Date" }; - _methodName39 = "updateIntPraticaSorteggio"; + _methodName40 = "updateIntPraticaSorteggio"; - _methodParameterTypes39 = new String[] { + _methodParameterTypes40 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName40 = "findByC_UserId"; - - _methodParameterTypes40 = new String[] { "long", "long", "int", "int" }; + _methodName41 = "findByC_UserId"; - _methodName41 = "countByC_UserId"; + _methodParameterTypes41 = new String[] { "long", "long", "int", "int" }; - _methodParameterTypes41 = new String[] { "long", "long" }; + _methodName42 = "countByC_UserId"; - _methodName42 = "updateStatus"; + _methodParameterTypes42 = new String[] { "long", "long" }; - _methodParameterTypes42 = new String[] { "long", "int" }; + _methodName43 = "updateStatus"; - _methodName43 = "findByCompanyIdSoggettoProgetti"; + _methodParameterTypes43 = new String[] { "long", "int" }; - _methodParameterTypes43 = new String[] { "long", "long" }; - - _methodName44 = "countByCompanyIdSoggettoProgetti"; + _methodName44 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes44 = new String[] { "long", "long" }; - _methodName45 = "findByCompanyIdSoggettoArchivio"; + _methodName45 = "countByCompanyIdSoggettoProgetti"; _methodParameterTypes45 = new String[] { "long", "long" }; - _methodName46 = "countByCompanyIdSoggettoArchivio"; + _methodName46 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes46 = new String[] { "long", "long" }; - _methodName47 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName47 = "countByCompanyIdSoggettoArchivio"; + + _methodParameterTypes47 = new String[] { "long", "long" }; + + _methodName48 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes47 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes48 = new String[] { "long", "long", "int", "int" }; - _methodName48 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName49 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes48 = new String[] { "long", "long" }; + _methodParameterTypes49 = new String[] { "long", "long" }; - _methodName49 = "findByCanAddFineLavori"; + _methodName50 = "findByCanAddFineLavori"; - _methodParameterTypes49 = new String[] { + _methodParameterTypes50 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName50 = "countByCanAddFineLavori"; + _methodName51 = "countByCanAddFineLavori"; - _methodParameterTypes50 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes51 = new String[] { "long", "java.lang.String" }; - _methodName51 = "findByCanAddCollaudo"; + _methodName52 = "findByCanAddCollaudo"; - _methodParameterTypes51 = new String[] { + _methodParameterTypes52 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName52 = "countByCanAddCollaudo"; + _methodName53 = "countByCanAddCollaudo"; - _methodParameterTypes52 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes53 = new String[] { "long", "java.lang.String" }; - _methodName53 = "search"; + _methodName54 = "search"; - _methodParameterTypes53 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes54 = new String[] { "java.util.List", "int", "int" }; - _methodName54 = "countSearch"; + _methodName55 = "countSearch"; - _methodParameterTypes54 = new String[] { "java.util.List" }; + _methodParameterTypes55 = new String[] { "java.util.List" }; - _methodName55 = "searchWithIntPraticaId"; + _methodName56 = "searchWithIntPraticaId"; - _methodParameterTypes55 = new String[] { + _methodParameterTypes56 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName56 = "countSearchWithIntPraticaId"; + _methodName57 = "countSearchWithIntPraticaId"; - _methodParameterTypes56 = new String[] { "java.util.List", "long" }; + _methodParameterTypes57 = new String[] { "java.util.List", "long" }; - _methodName57 = "allegaFileAnnullamento"; + _methodName58 = "allegaFileAnnullamento"; - _methodParameterTypes57 = new String[] { + _methodParameterTypes58 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName58 = "generateFileAnnullamento"; + _methodName59 = "generateFileAnnullamento"; - _methodParameterTypes58 = new String[] { + _methodParameterTypes59 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName59 = "deleteFileAnnullamento"; + _methodName60 = "deleteFileAnnullamento"; - _methodParameterTypes59 = new String[] { "long" }; + _methodParameterTypes60 = new String[] { "long" }; - _methodName60 = "completeAnnullamento"; + _methodName61 = "completeAnnullamento"; - _methodParameterTypes60 = new String[] { "long" }; + _methodParameterTypes61 = new String[] { "long" }; - _methodName61 = "cambiaIstruttore"; + _methodName62 = "cambiaIstruttore"; - _methodParameterTypes61 = new String[] { "long", "long", "long" }; + _methodParameterTypes62 = new String[] { "long", "long", "long" }; - _methodName62 = "countCaricoLavoroCF"; + _methodName63 = "countCaricoLavoroCF"; - _methodParameterTypes62 = new String[] { + _methodParameterTypes63 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName63 = "countCaricoLavoroIstruttore"; + _methodName64 = "countCaricoLavoroIstruttore"; - _methodParameterTypes63 = new String[] { + _methodParameterTypes64 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName64 = "generateReportPratica"; + _methodName65 = "generateReportPratica"; - _methodParameterTypes64 = new String[] { + _methodParameterTypes65 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName65 = "updateModifiedDate"; + _methodName66 = "updateModifiedDate"; - _methodParameterTypes65 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes66 = new String[] { "long", "java.util.Date" }; - _methodName66 = "countAutorizzazione"; + _methodName67 = "countAutorizzazione"; - _methodParameterTypes66 = new String[] { + _methodParameterTypes67 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName67 = "countSanatorie"; + _methodName68 = "countSanatorie"; - _methodParameterTypes67 = new String[] { + _methodParameterTypes68 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName68 = "countOpereMinoreImportanza"; + _methodName69 = "countOpereMinoreImportanza"; - _methodParameterTypes68 = new String[] { + _methodParameterTypes69 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName69 = "countDeposito"; + _methodName70 = "countDeposito"; - _methodParameterTypes69 = new String[] { + _methodParameterTypes70 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName70 = "countVidimate"; + _methodName71 = "countVidimate"; - _methodParameterTypes70 = new String[] { + _methodParameterTypes71 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName71 = "countControllo"; + _methodName72 = "countControllo"; - _methodParameterTypes71 = new String[] { + _methodParameterTypes72 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName72 = "findIntPraticaNotExist"; + _methodName73 = "findIntPraticaNotExist"; - _methodParameterTypes72 = new String[] { }; + _methodParameterTypes73 = new String[] { }; - _methodName73 = "riparaWorkflow"; + _methodName74 = "riparaWorkflow"; - _methodParameterTypes73 = new String[] { }; + _methodParameterTypes74 = new String[] { }; - _methodName74 = "reIndexFascicolo"; + _methodName75 = "reIndexFascicolo"; - _methodParameterTypes74 = new String[] { + _methodParameterTypes75 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName75 = "reIndexFasciolo"; - - _methodParameterTypes75 = new String[] { "java.lang.String", "long" }; - _methodName76 = "reIndexFasciolo"; - _methodParameterTypes76 = new String[] { "long", "long" }; + _methodParameterTypes76 = new String[] { "java.lang.String", "long" }; - _methodName77 = "trovaDoppioni"; + _methodName77 = "reIndexFasciolo"; - _methodParameterTypes77 = new String[] { }; + _methodParameterTypes77 = new String[] { "long", "long" }; - _methodName78 = "findByNumeroProgetto"; + _methodName78 = "trovaDoppioni"; - _methodParameterTypes78 = new String[] { "java.lang.String" }; + _methodParameterTypes78 = new String[] { }; - _methodName79 = "findByTerritorioId"; + _methodName79 = "findByNumeroProgetto"; - _methodParameterTypes79 = new String[] { "long" }; + _methodParameterTypes79 = new String[] { "java.lang.String" }; - _methodName80 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName80 = "findByTerritorioId"; - _methodParameterTypes80 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" - }; + _methodParameterTypes80 = new String[] { "long" }; - _methodName81 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName81 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; _methodParameterTypes81 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName82 = "reportPraticheVidimate"; + _methodName82 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; _methodParameterTypes82 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" + "java.util.Date", "java.util.Date", "long" }; - _methodName83 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName83 = "reportPraticheVidimate"; _methodParameterTypes83 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName84 = "countIngressiAutorizzazioni"; + _methodName84 = "reportPraticheVidimateCalcolaDataSorteggio"; _methodParameterTypes84 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName85 = "countIngressiDepositi"; + _methodName85 = "countIngressiAutorizzazioni"; _methodParameterTypes85 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName86 = "countIngressiCO"; + _methodName86 = "countIngressiDepositi"; _methodParameterTypes86 = new String[] { "java.util.Date", "java.util.Date", "long" }; + + _methodName87 = "countIngressiCO"; + + _methodParameterTypes87 = new String[] { + "java.util.Date", "java.util.Date", "long" + }; } @Override @@ -1258,6 +1264,43 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (java.util.Map>)ClpSerializer.translateOutput(returnObj); } + @Override + public java.util.List getIntPraticas( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, + new Object[] { + start, + + end, + + ClpSerializer.translateInput(orderByComparator) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + @Override public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, @@ -1268,8 +1311,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { territorioId, @@ -1312,8 +1355,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { territorioId, @@ -1358,8 +1401,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { userId, @@ -1417,8 +1460,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { ClpSerializer.translateInput(intPratica), @@ -1457,8 +1500,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { intPraticaId, @@ -1498,8 +1541,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { intPraticaId, @@ -1541,8 +1584,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1569,8 +1612,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1599,8 +1642,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1633,8 +1676,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { intPraticaId, sospesa }); } catch (Throwable t) { @@ -1669,8 +1712,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { intPraticaId, @@ -1710,8 +1753,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { intPraticaId, @@ -1748,8 +1791,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { intPraticaId, @@ -1783,8 +1826,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { intPraticaId, @@ -1819,8 +1862,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { companyId, userId, start, end }); } catch (Throwable t) { @@ -1848,8 +1891,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, new Object[] { companyId, userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { companyId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1875,8 +1918,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, new Object[] { intPraticaId, status }); + _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { intPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1907,8 +1950,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1941,8 +1984,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1976,8 +2019,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2010,8 +2053,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2045,8 +2088,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { companyId, soggettoId, start, end }); } catch (Throwable t) { @@ -2080,8 +2123,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2115,8 +2158,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { companyId, @@ -2158,8 +2201,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { companyId, @@ -2197,8 +2240,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { companyId, @@ -2240,8 +2283,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { companyId, @@ -2278,8 +2321,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2313,8 +2356,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { ClpSerializer.translateInput(groupIds) }); } catch (Throwable t) { @@ -2343,8 +2386,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2381,8 +2424,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2419,8 +2462,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { intPraticaId, @@ -2470,8 +2513,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, + returnObj = _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { intPraticaId, @@ -2510,8 +2553,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, + _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { docPraticaAnnullamentoId }); } catch (Throwable t) { @@ -2540,8 +2583,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2570,8 +2613,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, + _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -2604,8 +2647,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { ispettoreId, @@ -2646,8 +2689,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { ispettoreId, @@ -2683,8 +2726,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { ClpSerializer.translateInput(intPratica), @@ -2722,8 +2765,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { intPraticaId, @@ -2760,8 +2803,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), @@ -2796,8 +2839,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), @@ -2832,8 +2875,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), @@ -2868,8 +2911,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), @@ -2906,8 +2949,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2947,8 +2990,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2986,8 +3029,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3014,8 +3057,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3040,8 +3083,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFascicolo( it.tref.liferay.portos.bo.model.IntPratica intPratica, long companyId) { try { - _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, + _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { ClpSerializer.translateInput(intPratica), companyId }); } catch (Throwable t) { @@ -3061,8 +3104,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(_methodName75, - _methodParameterTypes75, + _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { ClpSerializer.translateInput(numeroProgetto), @@ -3091,8 +3134,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, + _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { intPraticaId, companyId }); } catch (Throwable t) { @@ -3122,8 +3165,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3151,8 +3194,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { ClpSerializer.translateInput(numeroProgetto) }); } catch (Throwable t) { @@ -3181,8 +3224,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, new Object[] { territorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName80, + _methodParameterTypes80, new Object[] { territorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3211,8 +3254,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, + returnObj = _invokableLocalService.invokeMethod(_methodName81, + _methodParameterTypes81, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3249,8 +3292,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, + returnObj = _invokableLocalService.invokeMethod(_methodName82, + _methodParameterTypes82, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3286,8 +3329,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, + returnObj = _invokableLocalService.invokeMethod(_methodName83, + _methodParameterTypes83, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3324,8 +3367,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, + returnObj = _invokableLocalService.invokeMethod(_methodName84, + _methodParameterTypes84, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3360,8 +3403,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, + returnObj = _invokableLocalService.invokeMethod(_methodName85, + _methodParameterTypes85, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3396,8 +3439,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName85, - _methodParameterTypes85, + returnObj = _invokableLocalService.invokeMethod(_methodName86, + _methodParameterTypes86, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3432,8 +3475,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName86, - _methodParameterTypes86, + returnObj = _invokableLocalService.invokeMethod(_methodName87, + _methodParameterTypes87, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3634,4 +3677,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes85; private String _methodName86; private String[] _methodParameterTypes86; + private String _methodName87; + private String[] _methodParameterTypes87; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java index cbfeabab..87f7c3da 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java @@ -371,6 +371,13 @@ public class IntPraticaLocalServiceUtil { return getService().findSorteggiabili(companyId, dtSorteggio); } + public static java.util.List getIntPraticas( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getIntPraticas(start, end, orderByComparator); + } + public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, boolean isOspedaliera, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java index b0c1b718..f603e426 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java @@ -395,6 +395,15 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, return _intPraticaLocalService.findSorteggiabili(companyId, dtSorteggio); } + @Override + public java.util.List getIntPraticas( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPraticaLocalService.getIntPraticas(start, end, + orderByComparator); + } + @Override public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java index 8dab2c05..d781b854 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java @@ -18,6 +18,7 @@ import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.model.impl.CollaudoImpl; import it.tref.liferay.portos.bo.model.impl.FineLavoriImpl; +import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl; import it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil; import it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; @@ -37,7 +38,6 @@ import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.Constants; -import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.WorkflowConstants; import java.io.Serializable; @@ -48,10 +48,8 @@ import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.HashMap; -import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import java.util.Map.Entry; import java.util.TreeMap; import javax.portlet.ActionRequest; @@ -65,14 +63,13 @@ import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.LocaleUtil; +import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.StringPool; @@ -120,6 +117,7 @@ import com.liferay.portlet.documentlibrary.model.DLFolder; import com.liferay.portlet.documentlibrary.service.DLAppServiceUtil; public class SismicaUtil { + private static final Log _log = LogFactoryUtil.getLog(SismicaUtil.class); private static final SimpleDateFormat dfmt = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); @@ -345,16 +343,18 @@ public class SismicaUtil { List controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, WorkflowConstants.STATUS_PENDING); if (0 == controlli.size()) { - if(Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())){ - _log.info("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + numeroProgetto); + if (Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())) { + if (_log.isDebugEnabled()) { + _log.debug("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + numeroProgetto); + } } else { esitoLog(esito, "Aggiungo controllo pratica numero " + numeroProgetto); ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(companyId); serviceContext.setScopeGroupId(dettPraticaId); serviceContext.setUserId(userId); - ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, dettPraticaId, true, - serviceContext); + ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, dettPraticaId, + true, serviceContext); } } else { esitoLog(esito, "Controllo pratica già presente"); @@ -417,12 +417,14 @@ public class SismicaUtil { public static List reIndexFascicoli(long companyId) { + OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create(IntPraticaImpl.TABLE_NAME, + "intPraticaId", false); List esito = new ArrayList<>(); int totale = 0; List pratiche = null; do { try { - pratiche = IntPraticaLocalServiceUtil.getIntPraticas(totale, totale + SLICE); + pratiche = IntPraticaLocalServiceUtil.getIntPraticas(totale, totale + SLICE, orderByComparator); } catch (SystemException e) { pratiche = new ArrayList<>(); } @@ -722,13 +724,15 @@ public class SismicaUtil { controllo = controlli.get(controlli.size() - 1); } catch (Exception e1) { try { - if(Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())){ - _log.info("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + pratica.getNumeroProgetto()); + if (Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())) { + _log.info("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + + pratica.getNumeroProgetto()); } else { esitoLog(esito, "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( - dettPratica.getGroupId(), dettPratica.getUserId(), pratica.getIntPraticaId(), - dettPratica.getDettPraticaId(), false, serviceContext); + dettPratica.getGroupId(), dettPratica.getUserId(), + pratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, + serviceContext); } } catch (PortalException | SystemException e2) { esitoLog(esito, "Errore durante la creazione di un controllo pratica per progetto " @@ -790,12 +794,14 @@ public class SismicaUtil { controlli = new ArrayList<>(); } if (pratica.getStatoPratica().equals(StatoPraticaConstants.VIDIMATA) && (controlli.size() == 0)) { - esitoLog( - esito, - "Progetto: " + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() - + "), procedura=" + pratica.getTipoProcedura() + ", avvisi=" - + totali.size() + ", stato=" + pratica.getStatoPratica() + ", controlli=" - + controlli.size()); + if (_log.isDebugEnabled()) { + esitoLog( + esito, + "Progetto: " + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + + "), procedura=" + pratica.getTipoProcedura() + ", avvisi=" + + totali.size() + ", stato=" + pratica.getStatoPratica() + + ", controlli=" + controlli.size()); + } DettPratica dettPratica; try { dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(pratica @@ -804,8 +810,11 @@ public class SismicaUtil { dettPratica = null; } if (Validator.isNotNull(dettPratica)) { - if(Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())){ - _log.info("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + pratica.getNumeroProgetto()); + if (Constants.PROCEDURA_C.equalsIgnoreCase(pratica.getTipoProcedura())) { + if (_log.isDebugEnabled()) { + _log.debug("Avrei avviato il WORKFLOW per procedura di tipo C per pratica numero " + + pratica.getNumeroProgetto()); + } } else { ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(dettPratica.getCompanyId()); @@ -813,7 +822,8 @@ public class SismicaUtil { serviceContext.setUserId(dettPratica.getUserId()); ControlloPratica controllo; try { - esitoLog(esito, "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); + esitoLog(esito, + "Aggiungo controllo pratica numero " + pratica.getNumeroProgetto()); controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( dettPratica.getGroupId(), dettPratica.getUserId(), pratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, @@ -838,10 +848,11 @@ public class SismicaUtil { if (!pratica.getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_C)) { AvvisoLocalServiceUtil.addAvviso(pratica.getIntPraticaId(), "Attestazione di deposito progetto", new Date(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.CONFORME, - fileEntryIdTemplate, dettPratica.getDettPraticaId(), - DettPratica.class.getName(), controllo.getControlloPraticaId(), - serviceContext); + AvvisoUtil.TIPO_AVVISO_DIRETTO, + StatoPraticaConstants.CONFORME, fileEntryIdTemplate, + dettPratica.getDettPraticaId(), + DettPratica.class.getName(), + controllo.getControlloPraticaId(), serviceContext); } pratica.setStatoPratica(StatoPraticaConstants.CONFORME); IntPraticaLocalServiceUtil.updateIntPratica(pratica); @@ -1014,204 +1025,6 @@ public class SismicaUtil { } } - private static Map templateByKey; - private static Map templateById; - private static Map templateIdByKey; - private static final Date inizio = stringToDate("2019-12-31"); - -// private static List riparaDocumenti(long companyId) throws SystemException, PortalException { -// -// List esito = new ArrayList(); -// esitoLog(esito, "Riparazione generazione documenti"); -// initTemplate(companyId); -// List intPratiche = null; -// int index = 0; -// do { -// try { -// intPratiche = IntPraticaLocalServiceUtil.getIntPraticas(index, index + SLICE); -// } catch (SystemException e) { -// esitoLog(esito, "Errore caricamento intPratiche: " + e.getMessage()); -// } -// for (IntPratica intPratica : intPratiche) { -// esito.addAll(verificaAvvisi(intPratica)); -// } -// index += SLICE; -// } while (intPratiche.size() > 0); -// return esito; -// } - -// private static void initTemplate(long companyId) throws SystemException, PortalException { -// -// templateById = new LinkedHashMap<>(); -// templateByKey = new LinkedHashMap<>(); -// templateIdByKey = new LinkedHashMap<>(); -// Map elenco = AvvisoUtil.getAllTipoDocumentoFileTemplateProps(); -// for (Entry template : elenco.entrySet()) { -// long fileEntryId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, template.getValue()); -// if (fileEntryId != 0) { -// FileEntry fileEntry = DLAppServiceUtil.getFileEntry(fileEntryId); -// templateById.put(fileEntryId, fileEntry.getTitle()); -// templateByKey.put(template.getKey(), fileEntry.getTitle()); -// templateIdByKey.put(template.getKey(), fileEntryId); -// } -// } -// } - -// private static List verificaAvvisi(IntPratica intPratica) { -// -// List esito = new ArrayList(); -// if (Validator.isNotNull(intPratica.getStatoPratica()) -// && !intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) { -// long intPraticaId = intPratica.getIntPraticaId(); -// List controlli = null; -// try { -// controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId); -// } catch (SystemException e) { -// controlli = new ArrayList(); -// } -// ControlloPratica controllo = null; -// ServiceContext serviceContext = null; -// if (controlli.size() > 0) { -// controllo = controlli.get(controlli.size() - 1); -// serviceContext = new ServiceContext(); -// serviceContext.setCompanyId(controllo.getCompanyId()); -// serviceContext.setScopeGroupId(controllo.getGroupId()); -// serviceContext.setUserId(controllo.getUserId()); -// } else { -// serviceContext = new ServiceContext(); -// serviceContext.setCompanyId(intPratica.getCompanyId()); -// try { -// serviceContext.setScopeGroupId(TerritorioLocalServiceUtil.getTerritorio( -// intPratica.getTerritorioId()).getGroupId()); -// } catch (PortalException | SystemException e) {} -// serviceContext.setUserId(intPratica.getUserId()); -// } -// List avvisi = getAvvisiPratica(intPraticaId); -// List avvisiFermi = new ArrayList<>(); -// List avvisiInviati = new ArrayList<>(); -// Date ultimaData = null; -// for (Avviso avviso : avvisi) { -// if ((ultimaData == null) || avviso.getModifiedDate().after(ultimaData)) { -// ultimaData = avviso.getModifiedDate(); -// } -// if (!avviso.getAnnullato()) { -// String template = templateById.get(avviso.getFileEntryIdTemplate()); -// if (avviso.getDtAvviso().after(inizio) && !avviso.getAnnullato() -// && (avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_NON_INVIATO))) { -// avvisiFermi.add(avviso); -// if (template == null) -// template = templateByKey.get(avviso.getTipoDocumento()); -// } else if (avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_INVIATO)) { -// avvisiInviati.add(template); -// } -// } -// } -// if ((ultimaData != null) && (new Date().getTime() - ultimaData.getTime() > 7200000)) { -// for (Avviso avviso : avvisiFermi) { -// long templateId = avviso.getFileEntryIdTemplate(); -// String template = templateById.get(templateId); -// if (Validator.isNull(template) && templateByKey.containsKey(avviso.getTipoDocumento())) { -// template = templateByKey.get(avviso.getTipoDocumento()); -// templateId = templateIdByKey.get(avviso.getTipoDocumento()); -// } -// if (!avvisiInviati.contains(template)) { -// switch (avviso.getTipoDocumento()) { -// case "MA": -// case StatoPraticaConstants.NON_CONFORME: -// case StatoPraticaConstants.INTEGRAZIONE: -// break; -// case StatoPraticaConstants.AUTORIZZATA: -// case StatoPraticaConstants.CONFORME: -// case StatoPraticaConstants.SOTTOPOSTA_A_PARERE: -// case StatoPraticaConstants.VIDIMATA: -// if (avviso.getTipoAvviso().equals(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { -// esito.addAll(addStoricoAvvisi(intPratica, avvisi)); -// esitoLog(esito, "Invio " + template + " (" + controlli.size() + " controlli)"); -// try { -// if (Validator.isNull(controllo)) { -// controllo = aggiungiControlloPratica(intPratica); -// esitoLog(esito, intPratica.getNumeroProgetto() -// + " aggiunto ControlloPratica " + controllo.getControlloPraticaId()); -// } -// AvvisoLocalServiceUtil.addAvviso(intPraticaId, StringPool.BLANK, -// avviso.getDtAvviso(), AvvisoUtil.TIPO_AVVISO_DIRETTO, -// avviso.getTipoDocumento(), templateId, controllo.getDettPraticaId(), -// DettPratica.class.getName(), controllo.getControlloPraticaId(), -// serviceContext); -// } catch (Exception e) { -// esitoLog(esito, "Errore durante l'invio: " + e.getMessage()); -// } -// } -// break; -// default: -// if (avviso.getTipoAvviso().equals(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { -// esito.addAll(addStoricoAvvisi(intPratica, avvisi)); -// esitoLog(esito, "Procederei all'invio di avviso " + template); -// } -// break; -// } -// } -// } -// } -// } -// return esito; -// } - -// private static ControlloPratica aggiungiControlloPratica(IntPratica intPratica) throws PortalException, -// SystemException { -// -// DettPratica dettPratica = DettPraticaLocalServiceUtil -// .getLastCompletedByIntPratica(intPratica.getIntPraticaId()); -// ServiceContext serviceContext = new ServiceContext(); -// serviceContext.setCompanyId(dettPratica.getCompanyId()); -// serviceContext.setScopeGroupId(dettPratica.getGroupId()); -// serviceContext.setUserId(dettPratica.getUserId()); -// _log.info("Aggiungo controllo pratica numero " + intPratica.getNumeroProgetto()); -// ControlloPratica controllo = ControlloPraticaLocalServiceUtil.addControlloPratica(intPratica.getGroupId(), -// intPratica.getUserId(), intPratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, -// serviceContext); -// return controllo; -// } - -// private static List getAvvisiPratica(long intPraticaId) { -// -// List avvisi = null; -// try { -// avvisi = AvvisoLocalServiceUtil.findByIntPratica( -// intPraticaId, -// QueryUtil.ALL_POS, -// QueryUtil.ALL_POS, -// OrderByComparatorFactoryUtil.getOrderByComparatorFactory().create("portos_bo_Avviso", "dtAvviso", -// true)); -// } catch (SystemException e) { -// _log.error("Errore recupero avvisi" + e.getMessage()); -// avvisi = new ArrayList(); -// } -// return avvisi; -// } -// -// private static List addStoricoAvvisi(IntPratica intPratica, List avvisi) { -// -// List esito = new ArrayList(); -// String tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-" + intPratica.getTipoPratica()); -// esitoLog(esito, -// "* intPraticaId=" + intPratica.getIntPraticaId() + ", numeroProgetto=" + intPratica.getNumeroProgetto() -// + ", procedura=" + intPratica.getTipoProcedura() + ", stato=" + intPratica.getStatoPratica() -// + ", tipo=" + tipoPratica + ", data=" + dfmt.format(intPratica.getCreateDate()) -// + ", modificata=" + dfmt.format(intPratica.getModifiedDate())); -// for (Avviso avviso : avvisi) { -// String template = templateById.get(avviso.getFileEntryIdTemplate()); -// if (template == null) -// template = templateByKey.get(avviso.getTipoDocumento()); -// ; -// boolean inviato = avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_INVIATO); -// esitoLog(esito, dfmt.format(avviso.getDtAvviso()) + " Avviso " + template + StringPool.SPACE -// + (inviato ? "inviato " + dfmt.format(avviso.getDtInvio()) : "non inviato") + " - tipo avviso " -// + avviso.getTipoAvviso() + " - tipo documento " + avviso.getTipoDocumento()); -// } -// return esito; -// } - public static List trasformaFLC(long companyId, String numeroPratica, String tipoDaRiaprire) throws SystemException, PortalException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java index 678cb41a..9b34be9f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java @@ -64,6 +64,7 @@ import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; import com.liferay.portal.util.PortalUtil; public class ControlloPraticaIndexer extends BaseIndexer { + public static final String[] CLASS_NAMES = { ControlloPratica.class.getName() }; public static final String PORTLET_ID = "1_WAR_portosfeportlet"; public static final Format DATE_FORMAT = FastDateFormatFactoryUtil.getSimpleDateFormat("yyyyMMdd"); @@ -137,15 +138,15 @@ public class ControlloPraticaIndexer extends BaseIndexer { document.addKeyword(PortosIndexField.ISTRUTTORE_USER_ID, intPratica.getStatusByUserId()); User userIstruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); if (userIstruttore != null) { - document.addKeyword(PortosIndexField.ISTRUTTORE_FULL_NAME, userIstruttore.getFullName() - .toUpperCase()); + document.addText(PortosIndexField.ISTRUTTORE_FULL_NAME, + new String[] { userIstruttore.getFullName(), userIstruttore.getScreenName() }); } } if (intPratica.getUserId() != 0L) { User proprietarioDigitale = UserLocalServiceUtil.fetchUser(intPratica.getUserId()); if (proprietarioDigitale != null) { - document.addKeyword(PortosIndexField.PROPRIETARIO_DIGITALE_FULL_NAME, proprietarioDigitale - .getFullName().toUpperCase()); + document.addText(PortosIndexField.PROPRIETARIO_DIGITALE_FULL_NAME, new String[] { + proprietarioDigitale.getFullName(), proprietarioDigitale.getScreenName() }); } } // Informazioni sullo stato della pratica @@ -239,10 +240,11 @@ public class ControlloPraticaIndexer extends BaseIndexer { // Creao una stringa contenente tutti i codFisc legati alla IntPratica separati da , List listaSoggetti = new ArrayList(); for (Soggetto soggetto : committenti) { - listaSoggetti.add(soggetto.getNome().toUpperCase() + " " + soggetto.getCognome().toUpperCase()); + listaSoggetti.add(soggetto.getNome() + " " + soggetto.getCognome()); + listaSoggetti.add(soggetto.getCodiceFiscale()); } - document.addKeyword(PortosIndexField.SOGGETTI_INTERESSATI, listaSoggetti.toArray(new String[0])); - document.addKeyword(PortosIndexField.COMMITTENTI, listaSoggetti.toArray(new String[0])); + document.addText(PortosIndexField.SOGGETTI_INTERESSATI, listaSoggetti.toArray(new String[0])); + document.addText(PortosIndexField.COMMITTENTI, listaSoggetti.toArray(new String[0])); } // Soggetti Interconnessi List listSoggettiInterconnessi = SoggettoLocalServiceUtil @@ -250,7 +252,8 @@ public class ControlloPraticaIndexer extends BaseIndexer { if (listSoggettiInterconnessi != null && !listSoggettiInterconnessi.isEmpty()) { List listaStringata = new ArrayList(); for (Soggetto sog : listSoggettiInterconnessi) { - listaStringata.add(sog.getNome().toUpperCase() + " " + sog.getCognome().toUpperCase()); + listaStringata.add(sog.getNome() + " " + sog.getCognome()); + listaStringata.add(sog.getCodiceFiscale()); } document.addKeyword(PortosIndexField.SOGGETTI_INTERCONNESSI, listaStringata.toArray(new String[0])); } @@ -403,6 +406,7 @@ public class ControlloPraticaIndexer extends BaseIndexer { @Override protected void doReindex(String[] ids) throws Exception { + _log.debug("doReindex ControlloPratica"); if (ids != null && ids.length > 0) { long companyId = GetterUtil.getLong(ids[0]); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java index 29f7c130..f3b699bf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java @@ -162,7 +162,7 @@ public class IntPraticaIndexer extends BaseIndexer { if (tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_B1)) tipoProcedura = Constants.PROCEDURA_B; document.addKeyword(PortosIndexField.TIPO_PROCEDURA, tipoProcedura); - if(intPratica.isPraticaOspedaliera()){ + if (intPratica.isPraticaOspedaliera()) { _log.debug("Adding praticaOspedaliera Index on intpratica " + intPratica.getIntPraticaId()); document.addKeyword("praticaospedaliera", intPratica.isPraticaOspedaliera()); } @@ -215,14 +215,15 @@ public class IntPraticaIndexer extends BaseIndexer { if (intPratica.getStatusByUserId() != 0L) { User userIstruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); if (userIstruttore != null) { - document.addText(PortosIndexField.ISTRUTTORE_FULL_NAME, userIstruttore.getFullName()); + document.addText(PortosIndexField.ISTRUTTORE_FULL_NAME, new String[] { + userIstruttore.getFullName(), userIstruttore.getScreenName() }); } } if (intPratica.getUserId() != 0L) { User proprietarioDigitale = UserLocalServiceUtil.fetchUser(intPratica.getUserId()); if (proprietarioDigitale != null) { - document.addText(PortosIndexField.PROPRIETARIO_DIGITALE_FULL_NAME, - proprietarioDigitale.getFullName()); + document.addText(PortosIndexField.PROPRIETARIO_DIGITALE_FULL_NAME, new String[] { + proprietarioDigitale.getFullName(), proprietarioDigitale.getScreenName() }); } } // Prendo la lista dei soggetti committenti legati a IntPratica @@ -289,6 +290,7 @@ public class IntPraticaIndexer extends BaseIndexer { if (Validator.isNotNull(soggetto.getDenominazione())) { listaSoggetti.add(soggetto.getDenominazione()); } + listaSoggetti.add(soggetto.getCodiceFiscale()); } document.addText(PortosIndexField.COMMITTENTI, listaSoggetti.toArray(new String[0])); } @@ -332,10 +334,13 @@ public class IntPraticaIndexer extends BaseIndexer { if (listSoggettiInterconnessi != null && !listSoggettiInterconnessi.isEmpty()) { List listaStringata = new ArrayList(); for (Soggetto sog : listSoggettiInterconnessi) { - if (Validator.isNotNull(sog.getCognome())) + if (Validator.isNotNull(sog.getCognome())) { listaStringata.add(sog.getNome() + " " + sog.getCognome()); - if (Validator.isNotNull(sog.getDenominazione())) + } + if (Validator.isNotNull(sog.getDenominazione())) { listaStringata.add(sog.getDenominazione()); + } + listaStringata.add(sog.getCodiceFiscale()); } document.addText(PortosIndexField.SOGGETTI_INTERCONNESSI, listaStringata.toArray(new String[0])); } @@ -437,6 +442,7 @@ public class IntPraticaIndexer extends BaseIndexer { @Override protected void performAction(Object object) throws PortalException { + if (object != null) { IntPratica intPratica = (IntPratica) object; if (intPratica != null) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java index 9acf3523..1dd64076 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java @@ -236,11 +236,12 @@ public class FascicoloPortlet extends MVCPortlet { } public void searchURL(ActionRequest actionRequest, ActionResponse actionResponse) { + String numeroProgetto = actionRequest.getParameter("numeroProgetto"); String protocollo = actionRequest.getParameter("protocollo"); // String tipoPratica = actionRequest.getParameter("tipoPratica"); String tipoProcedura = actionRequest.getParameter("tipoProcedura"); -// String praticaospedaliera = String.valueOf(ParamUtil.getBoolean(actionRequest, "praticaospedaliera")); + // String praticaospedaliera = String.valueOf(ParamUtil.getBoolean(actionRequest, "praticaospedaliera")); String statoPratica = actionRequest.getParameter("statoPratica"); String committente = actionRequest.getParameter("committente"); String descInterventoSearch = actionRequest.getParameter("descIntervento"); @@ -278,7 +279,7 @@ public class FascicoloPortlet extends MVCPortlet { actionResponse.setRenderParameter("praticaAperta", praticaAperta); actionResponse.setRenderParameter("descIntervento", descInterventoSearch); actionResponse.setRenderParameter("protocollo", protocollo); -// actionResponse.setRenderParameter("praticaospedaliera", praticaospedaliera); + // actionResponse.setRenderParameter("praticaospedaliera", praticaospedaliera); actionResponse.setRenderParameter("tipoProcedura", tipoProcedura); actionResponse.setRenderParameter("statoPratica", statoPratica); actionResponse.setRenderParameter("committente", committente); @@ -310,6 +311,7 @@ public class FascicoloPortlet extends MVCPortlet { @Override public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, PortletException { + String id = resourceRequest.getResourceID(); try { if ("downloadAllDocPratica".equals(id)) { @@ -374,8 +376,10 @@ public class FascicoloPortlet extends MVCPortlet { comumeList.add(comune); } Collections.sort(comumeList, new Comparator() { + @Override public int compare(Comune o1, Comune o2) { + return o1.getDenominazione().compareTo(o2.getDenominazione()); } }); @@ -481,8 +485,9 @@ public class FascicoloPortlet extends MVCPortlet { builder.append(committente.getTitle()).append(" - ").append(committente.getCodiceFiscale()) .append(StringPool.COMMA_AND_SPACE); } - if (builder.length() > 0) - builder.setLength(builder.length() - 12); + if (builder.length() > 0) { + builder.setLength(builder.length() - 2); + } sb.append(builder.toString()).append(StringPool.SEMICOLON); User istruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); if (istruttore != null) { @@ -501,12 +506,11 @@ public class FascicoloPortlet extends MVCPortlet { sb.append(comune.getDenominazione()); } sb.append(StringPool.SEMICOLON); - // ADT BUG-ID=15 Sezione Ricerca / Export csv - Max 30 chars - int MAX_LENGHT_DESCR_INTERVENTO = 30; + int MAX_LENGHT_DESCR_INTERVENTO = 120; if (Validator.isNotNull(lastDettPratica.getDescLongIntervento())) { - sb.append(lastDettPratica.getDescLongIntervento().length() > MAX_LENGHT_DESCR_INTERVENTO - ? lastDettPratica.getDescLongIntervento().substring(0, MAX_LENGHT_DESCR_INTERVENTO) - : lastDettPratica.getDescLongIntervento()); + sb.append(lastDettPratica.getDescLongIntervento().length() > MAX_LENGHT_DESCR_INTERVENTO ? lastDettPratica + .getDescLongIntervento().substring(0, MAX_LENGHT_DESCR_INTERVENTO) : lastDettPratica + .getDescLongIntervento()); } sb.append(StringPool.SEMICOLON); } catch (Throwable e) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java index 1bb785ee..04084c1f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java @@ -142,328 +142,334 @@ public class IntPraticaLocalServiceClpInvoker { _methodParameterTypes195 = new String[] { "long", "java.util.Date" }; - _methodName196 = "addIntPratica"; + _methodName196 = "getIntPraticas"; _methodParameterTypes196 = new String[] { - "long", "java.lang.String", "boolean", - "com.liferay.portal.service.ServiceContext" + "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; _methodName197 = "addIntPratica"; _methodParameterTypes197 = new String[] { - "long", "java.lang.String", + "long", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; _methodName198 = "addIntPratica"; _methodParameterTypes198 = new String[] { + "long", "java.lang.String", + "com.liferay.portal.service.ServiceContext" + }; + + _methodName199 = "addIntPratica"; + + _methodParameterTypes199 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "deleteIntPratica"; + _methodName200 = "deleteIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes200 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName200 = "deleteIntPratica"; + _methodName201 = "deleteIntPratica"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes201 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName201 = "cloneIntPratica"; + _methodName202 = "cloneIntPratica"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes202 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName203 = "updateDelegati"; + _methodName204 = "updateDelegati"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes204 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName204 = "fetchIntPratica"; + _methodName205 = "fetchIntPratica"; - _methodParameterTypes204 = new String[] { "long" }; + _methodParameterTypes205 = new String[] { "long" }; - _methodName205 = "findFascicoliNotProgetto"; + _methodName206 = "findFascicoliNotProgetto"; - _methodParameterTypes205 = new String[] { "int", "int" }; + _methodParameterTypes206 = new String[] { "int", "int" }; - _methodName206 = "countFascicoliNotProgetto"; + _methodName207 = "countFascicoliNotProgetto"; - _methodParameterTypes206 = new String[] { }; + _methodParameterTypes207 = new String[] { }; - _methodName208 = "addNumeroProgetto"; + _methodName209 = "addNumeroProgetto"; - _methodParameterTypes208 = new String[] { "long" }; + _methodParameterTypes209 = new String[] { "long" }; - _methodName209 = "sospendiPratica"; + _methodName210 = "sospendiPratica"; - _methodParameterTypes209 = new String[] { "long", "boolean" }; + _methodParameterTypes210 = new String[] { "long", "boolean" }; - _methodName210 = "cambiaTitolare"; + _methodName211 = "cambiaTitolare"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes211 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName211 = "updateStatoPratica"; + _methodName212 = "updateStatoPratica"; - _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes212 = new String[] { "long", "java.lang.String" }; - _methodName212 = "updateIntPraticaSorteggio"; + _methodName213 = "updateIntPraticaSorteggio"; - _methodParameterTypes212 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes213 = new String[] { "long", "java.util.Date" }; - _methodName213 = "updateIntPraticaSorteggio"; + _methodName214 = "updateIntPraticaSorteggio"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName214 = "findByC_UserId"; - - _methodParameterTypes214 = new String[] { "long", "long", "int", "int" }; - - _methodName215 = "countByC_UserId"; + _methodName215 = "findByC_UserId"; - _methodParameterTypes215 = new String[] { "long", "long" }; + _methodParameterTypes215 = new String[] { "long", "long", "int", "int" }; - _methodName216 = "updateStatus"; + _methodName216 = "countByC_UserId"; - _methodParameterTypes216 = new String[] { "long", "int" }; + _methodParameterTypes216 = new String[] { "long", "long" }; - _methodName217 = "findByCompanyIdSoggettoProgetti"; + _methodName217 = "updateStatus"; - _methodParameterTypes217 = new String[] { "long", "long" }; + _methodParameterTypes217 = new String[] { "long", "int" }; - _methodName218 = "countByCompanyIdSoggettoProgetti"; + _methodName218 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes218 = new String[] { "long", "long" }; - _methodName220 = "findByCompanyIdSoggettoArchivio"; + _methodName219 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes220 = new String[] { "long", "long" }; + _methodParameterTypes219 = new String[] { "long", "long" }; - _methodName221 = "countByCompanyIdSoggettoArchivio"; + _methodName221 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes221 = new String[] { "long", "long" }; - _methodName223 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName222 = "countByCompanyIdSoggettoArchivio"; + + _methodParameterTypes222 = new String[] { "long", "long" }; + + _methodName224 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes223 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes224 = new String[] { "long", "long", "int", "int" }; - _methodName224 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName225 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes224 = new String[] { "long", "long" }; + _methodParameterTypes225 = new String[] { "long", "long" }; - _methodName226 = "findByCanAddFineLavori"; + _methodName227 = "findByCanAddFineLavori"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes227 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName227 = "countByCanAddFineLavori"; + _methodName228 = "countByCanAddFineLavori"; - _methodParameterTypes227 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes228 = new String[] { "long", "java.lang.String" }; - _methodName229 = "findByCanAddCollaudo"; + _methodName230 = "findByCanAddCollaudo"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes230 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName230 = "countByCanAddCollaudo"; + _methodName231 = "countByCanAddCollaudo"; - _methodParameterTypes230 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes231 = new String[] { "long", "java.lang.String" }; - _methodName231 = "search"; + _methodName232 = "search"; - _methodParameterTypes231 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes232 = new String[] { "java.util.List", "int", "int" }; - _methodName232 = "countSearch"; + _methodName233 = "countSearch"; - _methodParameterTypes232 = new String[] { "java.util.List" }; + _methodParameterTypes233 = new String[] { "java.util.List" }; - _methodName233 = "searchWithIntPraticaId"; + _methodName234 = "searchWithIntPraticaId"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes234 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName234 = "countSearchWithIntPraticaId"; + _methodName235 = "countSearchWithIntPraticaId"; - _methodParameterTypes234 = new String[] { "java.util.List", "long" }; + _methodParameterTypes235 = new String[] { "java.util.List", "long" }; - _methodName235 = "allegaFileAnnullamento"; + _methodName236 = "allegaFileAnnullamento"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes236 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName236 = "generateFileAnnullamento"; + _methodName237 = "generateFileAnnullamento"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes237 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName237 = "deleteFileAnnullamento"; + _methodName238 = "deleteFileAnnullamento"; - _methodParameterTypes237 = new String[] { "long" }; + _methodParameterTypes238 = new String[] { "long" }; - _methodName238 = "completeAnnullamento"; + _methodName239 = "completeAnnullamento"; - _methodParameterTypes238 = new String[] { "long" }; + _methodParameterTypes239 = new String[] { "long" }; - _methodName239 = "cambiaIstruttore"; + _methodName240 = "cambiaIstruttore"; - _methodParameterTypes239 = new String[] { "long", "long", "long" }; + _methodParameterTypes240 = new String[] { "long", "long", "long" }; - _methodName240 = "countCaricoLavoroCF"; + _methodName241 = "countCaricoLavoroCF"; - _methodParameterTypes240 = new String[] { + _methodParameterTypes241 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName241 = "countCaricoLavoroIstruttore"; + _methodName242 = "countCaricoLavoroIstruttore"; - _methodParameterTypes241 = new String[] { + _methodParameterTypes242 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName242 = "generateReportPratica"; + _methodName243 = "generateReportPratica"; - _methodParameterTypes242 = new String[] { + _methodParameterTypes243 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName243 = "updateModifiedDate"; + _methodName244 = "updateModifiedDate"; - _methodParameterTypes243 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes244 = new String[] { "long", "java.util.Date" }; - _methodName244 = "countAutorizzazione"; + _methodName245 = "countAutorizzazione"; - _methodParameterTypes244 = new String[] { + _methodParameterTypes245 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName245 = "countSanatorie"; + _methodName246 = "countSanatorie"; - _methodParameterTypes245 = new String[] { + _methodParameterTypes246 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName246 = "countOpereMinoreImportanza"; + _methodName247 = "countOpereMinoreImportanza"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes247 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName247 = "countDeposito"; + _methodName248 = "countDeposito"; - _methodParameterTypes247 = new String[] { + _methodParameterTypes248 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName248 = "countVidimate"; + _methodName249 = "countVidimate"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes249 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName249 = "countControllo"; + _methodName250 = "countControllo"; - _methodParameterTypes249 = new String[] { + _methodParameterTypes250 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName250 = "findIntPraticaNotExist"; + _methodName251 = "findIntPraticaNotExist"; - _methodParameterTypes250 = new String[] { }; + _methodParameterTypes251 = new String[] { }; - _methodName251 = "riparaWorkflow"; + _methodName252 = "riparaWorkflow"; - _methodParameterTypes251 = new String[] { }; + _methodParameterTypes252 = new String[] { }; - _methodName252 = "reIndexFascicolo"; + _methodName253 = "reIndexFascicolo"; - _methodParameterTypes252 = new String[] { + _methodParameterTypes253 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName253 = "reIndexFasciolo"; - - _methodParameterTypes253 = new String[] { "java.lang.String", "long" }; - _methodName254 = "reIndexFasciolo"; - _methodParameterTypes254 = new String[] { "long", "long" }; + _methodParameterTypes254 = new String[] { "java.lang.String", "long" }; - _methodName255 = "trovaDoppioni"; + _methodName255 = "reIndexFasciolo"; - _methodParameterTypes255 = new String[] { }; + _methodParameterTypes255 = new String[] { "long", "long" }; - _methodName256 = "findByNumeroProgetto"; + _methodName256 = "trovaDoppioni"; - _methodParameterTypes256 = new String[] { "java.lang.String" }; + _methodParameterTypes256 = new String[] { }; - _methodName257 = "findByTerritorioId"; + _methodName257 = "findByNumeroProgetto"; - _methodParameterTypes257 = new String[] { "long" }; + _methodParameterTypes257 = new String[] { "java.lang.String" }; - _methodName258 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName258 = "findByTerritorioId"; - _methodParameterTypes258 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" - }; + _methodParameterTypes258 = new String[] { "long" }; - _methodName259 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName259 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; _methodParameterTypes259 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName260 = "reportPraticheVidimate"; + _methodName260 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; _methodParameterTypes260 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" + "java.util.Date", "java.util.Date", "long" }; - _methodName261 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName261 = "reportPraticheVidimate"; _methodParameterTypes261 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName262 = "countIngressiAutorizzazioni"; + _methodName262 = "reportPraticheVidimateCalcolaDataSorteggio"; _methodParameterTypes262 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName263 = "countIngressiDepositi"; + _methodName263 = "countIngressiAutorizzazioni"; _methodParameterTypes263 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName264 = "countIngressiCO"; + _methodName264 = "countIngressiDepositi"; _methodParameterTypes264 = new String[] { "java.util.Date", "java.util.Date", "long" }; + + _methodName265 = "countIngressiCO"; + + _methodParameterTypes265 = new String[] { + "java.util.Date", "java.util.Date", "long" + }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -610,21 +616,28 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName196.equals(name) && Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + return IntPraticaLocalServiceUtil.getIntPraticas(((Integer)arguments[0]).intValue(), + ((Integer)arguments[1]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[2]); + } + + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), @@ -636,226 +649,226 @@ public class IntPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return IntPraticaLocalServiceUtil.updateDelegati(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, 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 (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -863,67 +876,59 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2], (java.lang.Long[])arguments[3]); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { - return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); - } - if (_methodName242.equals(name) && Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { - return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], - ((Long)arguments[1]).longValue()); + return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); } if (_methodName243.equals(name) && Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { - return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1]); + return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], + ((Long)arguments[1]).longValue()); } if (_methodName244.equals(name) && Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { - return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), + (java.util.Date)arguments[1]); } if (_methodName245.equals(name) && Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { - return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName246.equals(name) && Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { - return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName247.equals(name) && Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { - return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - ((Boolean)arguments[3]).booleanValue()); + return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName248.equals(name) && Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { - return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3], - ((Boolean)arguments[4]).booleanValue()); + ((Boolean)arguments[3]).booleanValue()); } if (_methodName249.equals(name) && Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { - return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0], + 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()); @@ -931,25 +936,25 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName250.equals(name) && Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { - return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); + 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 (_methodName251.equals(name) && Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { - return IntPraticaLocalServiceUtil.riparaWorkflow(); + return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); } if (_methodName252.equals(name) && Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], - ((Long)arguments[1]).longValue()); - - return null; + return IntPraticaLocalServiceUtil.riparaWorkflow(); } if (_methodName253.equals(name) && Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], + IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); return null; @@ -957,7 +962,7 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName254.equals(name) && Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), + IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; @@ -965,59 +970,67 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName255.equals(name) && Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { - return IntPraticaLocalServiceUtil.trovaDoppioni(); + IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), + ((Long)arguments[1]).longValue()); + + return null; } if (_methodName256.equals(name) && Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); + return IntPraticaLocalServiceUtil.trovaDoppioni(); } if (_methodName257.equals(name) && Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); + return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } if (_methodName258.equals(name) && Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3]); + return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } if (_methodName259.equals(name) && Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), + (java.lang.String)arguments[3]); } if (_methodName260.equals(name) && Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3]); + return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName261.equals(name) && Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), + (java.lang.String)arguments[3]); } if (_methodName262.equals(name) && Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { - return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName263.equals(name) && Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { - return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName264.equals(name) && Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + } + + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } @@ -1087,16 +1100,16 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; - private String _methodName203; - private String[] _methodParameterTypes203; + private String _methodName202; + private String[] _methodParameterTypes202; private String _methodName204; private String[] _methodParameterTypes204; private String _methodName205; private String[] _methodParameterTypes205; private String _methodName206; private String[] _methodParameterTypes206; - private String _methodName208; - private String[] _methodParameterTypes208; + private String _methodName207; + private String[] _methodParameterTypes207; private String _methodName209; private String[] _methodParameterTypes209; private String _methodName210; @@ -1117,20 +1130,20 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes217; private String _methodName218; private String[] _methodParameterTypes218; - private String _methodName220; - private String[] _methodParameterTypes220; + private String _methodName219; + private String[] _methodParameterTypes219; private String _methodName221; private String[] _methodParameterTypes221; - private String _methodName223; - private String[] _methodParameterTypes223; + private String _methodName222; + private String[] _methodParameterTypes222; private String _methodName224; private String[] _methodParameterTypes224; - private String _methodName226; - private String[] _methodParameterTypes226; + private String _methodName225; + private String[] _methodParameterTypes225; private String _methodName227; private String[] _methodParameterTypes227; - private String _methodName229; - private String[] _methodParameterTypes229; + private String _methodName228; + private String[] _methodParameterTypes228; private String _methodName230; private String[] _methodParameterTypes230; private String _methodName231; @@ -1201,4 +1214,6 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes263; private String _methodName264; private String[] _methodParameterTypes264; + private String _methodName265; + private String[] _methodParameterTypes265; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java index 7a8b1a82..c0f75e34 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java @@ -85,6 +85,7 @@ import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.IndexerRegistryUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.MimeTypesUtil; +import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.WorkflowException; @@ -112,6 +113,7 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; * @see it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil */ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { + /* * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link * it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil} to access the int pratica local service. @@ -231,19 +233,26 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } return ret; } - + + @Override + public List getIntPraticas(int start, int end, OrderByComparator orderByComparator) + throws SystemException { + + return intPraticaPersistence.findAll(start, end, orderByComparator); + } + @Override @Indexable(type = IndexableType.REINDEX) public IntPratica addIntPratica(long territorioId, String tipoProcedura, boolean isOspedaliera, ServiceContext serviceContext) throws SystemException, PortalException { - if(isOspedaliera){ + if (isOspedaliera) { tipoProcedura = Constants.PROCEDURA_H; } - + return addIntPratica(territorioId, tipoProcedura, serviceContext); } - + @Override @Indexable(type = IndexableType.REINDEX) public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext) @@ -262,7 +271,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { intPratica.setModifiedDate(serviceContext.getModifiedDate(now)); intPratica.setTipoPratica(Constants.PRATICA_ZONE.get(tipoProcedura)); intPratica.setTerritorioId(territorioId); - if(tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_H)){ + if (tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_H)) { tipoProcedura = Constants.PROCEDURA_B; intPratica.setPraticaOspedaliera(true); } @@ -1371,6 +1380,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { @Override public List reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, long groupId, String type) throws SystemException { + return IntPraticaFinderUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni(dtMin, dtMax, groupId, type); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java index fe5ffd69..68b9d749 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchAllegatoManualeException; import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeImpl; import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl; +import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java index d0f1112c..f9489e0d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchAsseverazioneException; import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.impl.AsseverazioneImpl; import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl; +import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java index e35a9522..a8a28936 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchAvvisoException; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.impl.AvvisoImpl; import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java index a676849e..1c9ee855 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchCollaudoException; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.impl.CollaudoImpl; import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java index 260ad496..a181b0b2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchComuneException; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.impl.ComuneImpl; import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java index b88225f1..b8d76564 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchComunicazioneException; import it.tref.liferay.portos.bo.model.Comunicazione; import it.tref.liferay.portos.bo.model.impl.ComunicazioneImpl; import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java index 66d67c23..4a0e9a11 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchConfigurazioneException; import it.tref.liferay.portos.bo.model.Configurazione; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneImpl; import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java index 0cc84b84..7c1fa3f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchControlloPraticaException; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaImpl; import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java index bbf7e7de..a2090464 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchDelegaException; import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.model.impl.DelegaImpl; import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java index 9e01fd98..226bb2de 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchDettPraticaException; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl; import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java index 851c2c34..cbb97b8f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException; import it.tref.liferay.portos.bo.model.DocAggiuntiva; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaImpl; import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java index 4632fb51..1a35a013 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchDocPraticaException; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.impl.DocPraticaImpl; import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java index a459ca97..338d3b51 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchFineLavoriException; import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.impl.FineLavoriImpl; import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl; +import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java index b1f93960..7b45230e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.NoSuchHistoryWorkflowActionException; import it.tref.liferay.portos.bo.model.HistoryWorkflowAction; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl; import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl; +import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java index fd8c8e9d..10bbc644 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java @@ -48,6 +48,7 @@ import it.tref.liferay.portos.bo.NoSuchIntPraticaException; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl; import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java index 57f9fe5a..fa3d49c9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java @@ -46,6 +46,7 @@ import it.tref.liferay.portos.bo.NoSuchPagamentoException; import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.impl.PagamentoImpl; import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java index 22211d67..d4e4eb82 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchParereGeologoException; import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl; import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java index 33eb32c2..fc5fba87 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; import it.tref.liferay.portos.bo.model.PraticaAttenzionata; import it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataImpl; import it.tref.liferay.portos.bo.model.impl.PraticaAttenzionataModelImpl; +import it.tref.liferay.portos.bo.service.persistence.PraticaAttenzionataPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java index e20dcc6f..28c40f09 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java @@ -43,6 +43,7 @@ import it.tref.liferay.portos.bo.NoSuchProvinciaException; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.impl.ProvinciaImpl; import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java index 488eee17..9472e823 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchSoggettoException; import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.impl.SoggettoImpl; import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl; +import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java index 47f64b59..5bcc9a03 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchSorteggioException; import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.impl.SorteggioImpl; import it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl; +import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java index 04df6534..0bff1915 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java @@ -42,6 +42,7 @@ import it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException; import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica; import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaImpl; import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java index 17b343d3..61d576eb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java @@ -45,6 +45,7 @@ import it.tref.liferay.portos.bo.NoSuchTempisticaException; import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.model.impl.TempisticaImpl; import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl; +import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java index 10006a9c..c7f4d1dd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java @@ -44,6 +44,7 @@ import it.tref.liferay.portos.bo.NoSuchTerritorioException; import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.model.impl.TerritorioImpl; import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl; +import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index d81131a9..612e2577 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=2985 - build.date=1722424256719 + build.number=2988 + build.date=1762472831691 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/ivy.xml index b3577c9c..ebe0758e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/ivy.xml @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml index ddbee66c..eef3e993 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/ivy.xml index 2a6dfb0d..5e992d18 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/ivy.xml @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-collections.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-collections.jar new file mode 100644 index 00000000..fa5df82a Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-collections.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-lang.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-lang.jar new file mode 100644 index 00000000..98467d3a Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-lang.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-logging.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-logging.jar new file mode 100644 index 00000000..8758a96b Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/commons-logging.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-api.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-api.jar new file mode 100644 index 00000000..80a5737f Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-api.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-impl.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-impl.jar new file mode 100644 index 00000000..e5a9342f Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/jstl-impl.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/log4j.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/log4j.jar new file mode 100644 index 00000000..068867eb Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/log4j.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-bridges.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-bridges.jar new file mode 100644 index 00000000..7d7435fe Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-bridges.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-taglib.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-taglib.jar new file mode 100644 index 00000000..fbba5f0a Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/util-taglib.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity-tools.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity-tools.jar new file mode 100644 index 00000000..2ff76723 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity-tools.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity.jar b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity.jar new file mode 100644 index 00000000..e7151c5c Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/lib/velocity.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/liferay-portlet.xml index 4dea06c9..ebf895da 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/liferay-portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/liferay-portlet.xml @@ -5,7 +5,7 @@ 1 /icon.png - + it.tref.liferay.portos.mailmanager.messaging.SendMailMessageListener @@ -15,14 +15,14 @@ - + configuration - + 1.5 - + /css/main.css /js/main.js - + mail-manager-portlet true diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service.xml index ac025c86..101f48b8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service.xml @@ -48,7 +48,7 @@ - + @@ -62,18 +62,18 @@ - + - + - + @@ -85,7 +85,7 @@ - + @@ -97,12 +97,12 @@ + entity="DLApp" /> + remote-service="false"> @@ -123,12 +123,12 @@ + entity="DLApp" /> + remote-service="true"> @@ -156,10 +156,10 @@ - + - + @@ -183,7 +183,7 @@ - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachment.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachment.java new file mode 100644 index 00000000..b1d6e722 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachment.java @@ -0,0 +1,35 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model; + +import com.liferay.portal.model.PersistedModel; + +/** + * The extended model interface for the EmailTemplateAttachment service. Represents a row in the "portos_Mail_EmailTemplateAttachment" database table, with each column mapped to a property of this class. + * + * @author + * @see EmailTemplateAttachmentModel + * @see it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl + * @see it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl + * @generated + */ +public interface EmailTemplateAttachment extends EmailTemplateAttachmentModel, + PersistedModel { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. + */ +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentClp.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentClp.java new file mode 100644 index 00000000..bb4edc8d --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentClp.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model; + +import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.ProxyUtil; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.model.BaseModel; +import com.liferay.portal.model.impl.BaseModelImpl; + +import it.tref.liferay.portos.mailmanager.service.ClpSerializer; +import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil; +import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK; + +import java.io.Serializable; + +import java.lang.reflect.Method; + +import java.util.HashMap; +import java.util.Map; + +/** + * @author $author$ + */ +public class EmailTemplateAttachmentClp extends BaseModelImpl + implements EmailTemplateAttachment { + public EmailTemplateAttachmentClp() { + } + + @Override + public Class getModelClass() { + return EmailTemplateAttachment.class; + } + + @Override + public String getModelClassName() { + return EmailTemplateAttachment.class.getName(); + } + + @Override + public EmailTemplateAttachmentPK getPrimaryKey() { + return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId); + } + + @Override + public void setPrimaryKey(EmailTemplateAttachmentPK primaryKey) { + setEmailTemplateId(primaryKey.emailTemplateId); + setFileEntryId(primaryKey.fileEntryId); + } + + @Override + public Serializable getPrimaryKeyObj() { + return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId); + } + + @Override + public void setPrimaryKeyObj(Serializable primaryKeyObj) { + setPrimaryKey((EmailTemplateAttachmentPK)primaryKeyObj); + } + + @Override + public Map getModelAttributes() { + Map attributes = new HashMap(); + + attributes.put("emailTemplateId", getEmailTemplateId()); + attributes.put("fileEntryId", getFileEntryId()); + + return attributes; + } + + @Override + public void setModelAttributes(Map attributes) { + Long emailTemplateId = (Long)attributes.get("emailTemplateId"); + + if (emailTemplateId != null) { + setEmailTemplateId(emailTemplateId); + } + + Long fileEntryId = (Long)attributes.get("fileEntryId"); + + if (fileEntryId != null) { + setFileEntryId(fileEntryId); + } + } + + @Override + public long getEmailTemplateId() { + return _emailTemplateId; + } + + @Override + public void setEmailTemplateId(long emailTemplateId) { + _emailTemplateId = emailTemplateId; + + if (_emailTemplateAttachmentRemoteModel != null) { + try { + Class clazz = _emailTemplateAttachmentRemoteModel.getClass(); + + Method method = clazz.getMethod("setEmailTemplateId", long.class); + + method.invoke(_emailTemplateAttachmentRemoteModel, + emailTemplateId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + @Override + public long getFileEntryId() { + return _fileEntryId; + } + + @Override + public void setFileEntryId(long fileEntryId) { + _fileEntryId = fileEntryId; + + if (_emailTemplateAttachmentRemoteModel != null) { + try { + Class clazz = _emailTemplateAttachmentRemoteModel.getClass(); + + Method method = clazz.getMethod("setFileEntryId", long.class); + + method.invoke(_emailTemplateAttachmentRemoteModel, fileEntryId); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + + public BaseModel getEmailTemplateAttachmentRemoteModel() { + return _emailTemplateAttachmentRemoteModel; + } + + public void setEmailTemplateAttachmentRemoteModel( + BaseModel emailTemplateAttachmentRemoteModel) { + _emailTemplateAttachmentRemoteModel = emailTemplateAttachmentRemoteModel; + } + + public Object invokeOnRemoteModel(String methodName, + Class[] parameterTypes, Object[] parameterValues) + throws Exception { + Object[] remoteParameterValues = new Object[parameterValues.length]; + + for (int i = 0; i < parameterValues.length; i++) { + if (parameterValues[i] != null) { + remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]); + } + } + + Class remoteModelClass = _emailTemplateAttachmentRemoteModel.getClass(); + + ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader(); + + Class[] remoteParameterTypes = new Class[parameterTypes.length]; + + for (int i = 0; i < parameterTypes.length; i++) { + if (parameterTypes[i].isPrimitive()) { + remoteParameterTypes[i] = parameterTypes[i]; + } + else { + String parameterTypeName = parameterTypes[i].getName(); + + remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName); + } + } + + Method method = remoteModelClass.getMethod(methodName, + remoteParameterTypes); + + Object returnValue = method.invoke(_emailTemplateAttachmentRemoteModel, + remoteParameterValues); + + if (returnValue != null) { + returnValue = ClpSerializer.translateOutput(returnValue); + } + + return returnValue; + } + + @Override + public void persist() throws SystemException { + if (this.isNew()) { + EmailTemplateAttachmentLocalServiceUtil.addEmailTemplateAttachment(this); + } + else { + EmailTemplateAttachmentLocalServiceUtil.updateEmailTemplateAttachment(this); + } + } + + @Override + public EmailTemplateAttachment toEscapedModel() { + return (EmailTemplateAttachment)ProxyUtil.newProxyInstance(EmailTemplateAttachment.class.getClassLoader(), + new Class[] { EmailTemplateAttachment.class }, + new AutoEscapeBeanHandler(this)); + } + + @Override + public Object clone() { + EmailTemplateAttachmentClp clone = new EmailTemplateAttachmentClp(); + + clone.setEmailTemplateId(getEmailTemplateId()); + clone.setFileEntryId(getFileEntryId()); + + return clone; + } + + @Override + public int compareTo(EmailTemplateAttachment emailTemplateAttachment) { + EmailTemplateAttachmentPK primaryKey = emailTemplateAttachment.getPrimaryKey(); + + return getPrimaryKey().compareTo(primaryKey); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof EmailTemplateAttachmentClp)) { + return false; + } + + EmailTemplateAttachmentClp emailTemplateAttachment = (EmailTemplateAttachmentClp)obj; + + EmailTemplateAttachmentPK primaryKey = emailTemplateAttachment.getPrimaryKey(); + + if (getPrimaryKey().equals(primaryKey)) { + return true; + } + else { + return false; + } + } + + public Class getClpSerializerClass() { + return _clpSerializerClass; + } + + @Override + public int hashCode() { + return getPrimaryKey().hashCode(); + } + + @Override + public String toString() { + StringBundler sb = new StringBundler(5); + + sb.append("{emailTemplateId="); + sb.append(getEmailTemplateId()); + sb.append(", fileEntryId="); + sb.append(getFileEntryId()); + sb.append("}"); + + return sb.toString(); + } + + @Override + public String toXmlString() { + StringBundler sb = new StringBundler(10); + + sb.append(""); + sb.append( + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"); + sb.append(""); + + sb.append( + "emailTemplateId"); + sb.append( + "fileEntryId"); + + sb.append(""); + + return sb.toString(); + } + + private long _emailTemplateId; + private long _fileEntryId; + private BaseModel _emailTemplateAttachmentRemoteModel; + private Class _clpSerializerClass = it.tref.liferay.portos.mailmanager.service.ClpSerializer.class; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentModel.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentModel.java new file mode 100644 index 00000000..e3618589 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentModel.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model; + +import com.liferay.portal.model.BaseModel; +import com.liferay.portal.model.CacheModel; +import com.liferay.portal.service.ServiceContext; + +import com.liferay.portlet.expando.model.ExpandoBridge; + +import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK; + +import java.io.Serializable; + +/** + * The base model interface for the EmailTemplateAttachment service. Represents a row in the "portos_Mail_EmailTemplateAttachment" database table, with each column mapped to a property of this class. + * + *

+ * This interface and its corresponding implementation {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl}. + *

+ * + * @author + * @see EmailTemplateAttachment + * @see it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl + * @see it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl + * @generated + */ +public interface EmailTemplateAttachmentModel extends BaseModel { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. All methods that expect a email template attachment model instance should use the {@link EmailTemplateAttachment} interface instead. + */ + + /** + * Returns the primary key of this email template attachment. + * + * @return the primary key of this email template attachment + */ + public EmailTemplateAttachmentPK getPrimaryKey(); + + /** + * Sets the primary key of this email template attachment. + * + * @param primaryKey the primary key of this email template attachment + */ + public void setPrimaryKey(EmailTemplateAttachmentPK primaryKey); + + /** + * Returns the email template ID of this email template attachment. + * + * @return the email template ID of this email template attachment + */ + public long getEmailTemplateId(); + + /** + * Sets the email template ID of this email template attachment. + * + * @param emailTemplateId the email template ID of this email template attachment + */ + public void setEmailTemplateId(long emailTemplateId); + + /** + * Returns the file entry ID of this email template attachment. + * + * @return the file entry ID of this email template attachment + */ + public long getFileEntryId(); + + /** + * Sets the file entry ID of this email template attachment. + * + * @param fileEntryId the file entry ID of this email template attachment + */ + public void setFileEntryId(long fileEntryId); + + @Override + public boolean isNew(); + + @Override + public void setNew(boolean n); + + @Override + public boolean isCachedModel(); + + @Override + public void setCachedModel(boolean cachedModel); + + @Override + public boolean isEscapedModel(); + + @Override + public Serializable getPrimaryKeyObj(); + + @Override + public void setPrimaryKeyObj(Serializable primaryKeyObj); + + @Override + public ExpandoBridge getExpandoBridge(); + + @Override + public void setExpandoBridgeAttributes(BaseModel baseModel); + + @Override + public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); + + @Override + public void setExpandoBridgeAttributes(ServiceContext serviceContext); + + @Override + public Object clone(); + + @Override + public int compareTo( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment); + + @Override + public int hashCode(); + + @Override + public CacheModel toCacheModel(); + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment toEscapedModel(); + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment toUnescapedModel(); + + @Override + public String toString(); + + @Override + public String toXmlString(); +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentSoap.java new file mode 100644 index 00000000..70217e19 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentSoap.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model; + +import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.List; + +/** + * This class is used by SOAP remote services. + * + * @author + * @generated + */ +public class EmailTemplateAttachmentSoap implements Serializable { + public static EmailTemplateAttachmentSoap toSoapModel( + EmailTemplateAttachment model) { + EmailTemplateAttachmentSoap soapModel = new EmailTemplateAttachmentSoap(); + + soapModel.setEmailTemplateId(model.getEmailTemplateId()); + soapModel.setFileEntryId(model.getFileEntryId()); + + return soapModel; + } + + public static EmailTemplateAttachmentSoap[] toSoapModels( + EmailTemplateAttachment[] models) { + EmailTemplateAttachmentSoap[] soapModels = new EmailTemplateAttachmentSoap[models.length]; + + for (int i = 0; i < models.length; i++) { + soapModels[i] = toSoapModel(models[i]); + } + + return soapModels; + } + + public static EmailTemplateAttachmentSoap[][] toSoapModels( + EmailTemplateAttachment[][] models) { + EmailTemplateAttachmentSoap[][] soapModels = null; + + if (models.length > 0) { + soapModels = new EmailTemplateAttachmentSoap[models.length][models[0].length]; + } + else { + soapModels = new EmailTemplateAttachmentSoap[0][0]; + } + + for (int i = 0; i < models.length; i++) { + soapModels[i] = toSoapModels(models[i]); + } + + return soapModels; + } + + public static EmailTemplateAttachmentSoap[] toSoapModels( + List models) { + List soapModels = new ArrayList(models.size()); + + for (EmailTemplateAttachment model : models) { + soapModels.add(toSoapModel(model)); + } + + return soapModels.toArray(new EmailTemplateAttachmentSoap[soapModels.size()]); + } + + public EmailTemplateAttachmentSoap() { + } + + public EmailTemplateAttachmentPK getPrimaryKey() { + return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId); + } + + public void setPrimaryKey(EmailTemplateAttachmentPK pk) { + setEmailTemplateId(pk.emailTemplateId); + setFileEntryId(pk.fileEntryId); + } + + public long getEmailTemplateId() { + return _emailTemplateId; + } + + public void setEmailTemplateId(long emailTemplateId) { + _emailTemplateId = emailTemplateId; + } + + public long getFileEntryId() { + return _fileEntryId; + } + + public void setFileEntryId(long fileEntryId) { + _fileEntryId = fileEntryId; + } + + private long _emailTemplateId; + private long _fileEntryId; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentWrapper.java new file mode 100644 index 00000000..7398b028 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentWrapper.java @@ -0,0 +1,278 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model; + +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.ModelWrapper; + +import java.util.HashMap; +import java.util.Map; + +/** + *

+ * This class is a wrapper for {@link EmailTemplateAttachment}. + *

+ * + * @author + * @see EmailTemplateAttachment + * @generated + */ +public class EmailTemplateAttachmentWrapper implements EmailTemplateAttachment, + ModelWrapper { + public EmailTemplateAttachmentWrapper( + EmailTemplateAttachment emailTemplateAttachment) { + _emailTemplateAttachment = emailTemplateAttachment; + } + + @Override + public Class getModelClass() { + return EmailTemplateAttachment.class; + } + + @Override + public String getModelClassName() { + return EmailTemplateAttachment.class.getName(); + } + + @Override + public Map getModelAttributes() { + Map attributes = new HashMap(); + + attributes.put("emailTemplateId", getEmailTemplateId()); + attributes.put("fileEntryId", getFileEntryId()); + + return attributes; + } + + @Override + public void setModelAttributes(Map attributes) { + Long emailTemplateId = (Long)attributes.get("emailTemplateId"); + + if (emailTemplateId != null) { + setEmailTemplateId(emailTemplateId); + } + + Long fileEntryId = (Long)attributes.get("fileEntryId"); + + if (fileEntryId != null) { + setFileEntryId(fileEntryId); + } + } + + /** + * Returns the primary key of this email template attachment. + * + * @return the primary key of this email template attachment + */ + @Override + public it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK getPrimaryKey() { + return _emailTemplateAttachment.getPrimaryKey(); + } + + /** + * Sets the primary key of this email template attachment. + * + * @param primaryKey the primary key of this email template attachment + */ + @Override + public void setPrimaryKey( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK primaryKey) { + _emailTemplateAttachment.setPrimaryKey(primaryKey); + } + + /** + * Returns the email template ID of this email template attachment. + * + * @return the email template ID of this email template attachment + */ + @Override + public long getEmailTemplateId() { + return _emailTemplateAttachment.getEmailTemplateId(); + } + + /** + * Sets the email template ID of this email template attachment. + * + * @param emailTemplateId the email template ID of this email template attachment + */ + @Override + public void setEmailTemplateId(long emailTemplateId) { + _emailTemplateAttachment.setEmailTemplateId(emailTemplateId); + } + + /** + * Returns the file entry ID of this email template attachment. + * + * @return the file entry ID of this email template attachment + */ + @Override + public long getFileEntryId() { + return _emailTemplateAttachment.getFileEntryId(); + } + + /** + * Sets the file entry ID of this email template attachment. + * + * @param fileEntryId the file entry ID of this email template attachment + */ + @Override + public void setFileEntryId(long fileEntryId) { + _emailTemplateAttachment.setFileEntryId(fileEntryId); + } + + @Override + public boolean isNew() { + return _emailTemplateAttachment.isNew(); + } + + @Override + public void setNew(boolean n) { + _emailTemplateAttachment.setNew(n); + } + + @Override + public boolean isCachedModel() { + return _emailTemplateAttachment.isCachedModel(); + } + + @Override + public void setCachedModel(boolean cachedModel) { + _emailTemplateAttachment.setCachedModel(cachedModel); + } + + @Override + public boolean isEscapedModel() { + return _emailTemplateAttachment.isEscapedModel(); + } + + @Override + public java.io.Serializable getPrimaryKeyObj() { + return _emailTemplateAttachment.getPrimaryKeyObj(); + } + + @Override + public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { + _emailTemplateAttachment.setPrimaryKeyObj(primaryKeyObj); + } + + @Override + public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { + return _emailTemplateAttachment.getExpandoBridge(); + } + + @Override + public void setExpandoBridgeAttributes( + com.liferay.portal.model.BaseModel baseModel) { + _emailTemplateAttachment.setExpandoBridgeAttributes(baseModel); + } + + @Override + public void setExpandoBridgeAttributes( + com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { + _emailTemplateAttachment.setExpandoBridgeAttributes(expandoBridge); + } + + @Override + public void setExpandoBridgeAttributes( + com.liferay.portal.service.ServiceContext serviceContext) { + _emailTemplateAttachment.setExpandoBridgeAttributes(serviceContext); + } + + @Override + public java.lang.Object clone() { + return new EmailTemplateAttachmentWrapper((EmailTemplateAttachment)_emailTemplateAttachment.clone()); + } + + @Override + public int compareTo( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) { + return _emailTemplateAttachment.compareTo(emailTemplateAttachment); + } + + @Override + public int hashCode() { + return _emailTemplateAttachment.hashCode(); + } + + @Override + public com.liferay.portal.model.CacheModel toCacheModel() { + return _emailTemplateAttachment.toCacheModel(); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment toEscapedModel() { + return new EmailTemplateAttachmentWrapper(_emailTemplateAttachment.toEscapedModel()); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment toUnescapedModel() { + return new EmailTemplateAttachmentWrapper(_emailTemplateAttachment.toUnescapedModel()); + } + + @Override + public java.lang.String toString() { + return _emailTemplateAttachment.toString(); + } + + @Override + public java.lang.String toXmlString() { + return _emailTemplateAttachment.toXmlString(); + } + + @Override + public void persist() + throws com.liferay.portal.kernel.exception.SystemException { + _emailTemplateAttachment.persist(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof EmailTemplateAttachmentWrapper)) { + return false; + } + + EmailTemplateAttachmentWrapper emailTemplateAttachmentWrapper = (EmailTemplateAttachmentWrapper)obj; + + if (Validator.equals(_emailTemplateAttachment, + emailTemplateAttachmentWrapper._emailTemplateAttachment)) { + return true; + } + + return false; + } + + /** + * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} + */ + public EmailTemplateAttachment getWrappedEmailTemplateAttachment() { + return _emailTemplateAttachment; + } + + @Override + public EmailTemplateAttachment getWrappedModel() { + return _emailTemplateAttachment; + } + + @Override + public void resetOriginalValues() { + _emailTemplateAttachment.resetOriginalValues(); + } + + private EmailTemplateAttachment _emailTemplateAttachment; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalService.java new file mode 100644 index 00000000..e72fd374 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalService.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.search.IndexableType; +import com.liferay.portal.kernel.transaction.Isolation; +import com.liferay.portal.kernel.transaction.Propagation; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.service.BaseLocalService; +import com.liferay.portal.service.InvokableLocalService; +import com.liferay.portal.service.PersistedModelLocalService; + +/** + * Provides the local service interface for EmailTemplateAttachment. Methods of this + * service will not have security checks based on the propagated JAAS + * credentials because this service can only be accessed from within the same + * VM. + * + * @author + * @see EmailTemplateAttachmentLocalServiceUtil + * @see it.tref.liferay.portos.mailmanager.service.base.EmailTemplateAttachmentLocalServiceBaseImpl + * @see it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl + * @generated + */ +@Transactional(isolation = Isolation.PORTAL, rollbackFor = { + PortalException.class, SystemException.class}) +public interface EmailTemplateAttachmentLocalService extends BaseLocalService, + InvokableLocalService, PersistedModelLocalService { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. Always use {@link EmailTemplateAttachmentLocalServiceUtil} to access the email template attachment local service. Add custom service methods to {@link it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. + */ + + /** + * Adds the email template attachment to the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was added + * @throws SystemException if a system exception occurred + */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment addEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Creates a new email template attachment with the primary key. Does not add the email template attachment to the database. + * + * @param emailTemplateAttachmentPK the primary key for the new email template attachment + * @return the new email template attachment + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment createEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK); + + /** + * Deletes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment that was removed + * @throws PortalException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + /** + * Deletes the email template attachment from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was removed + * @throws SystemException if a system exception occurred + */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException; + + public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery(); + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) + throws com.liferay.portal.kernel.exception.SystemException; + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the email template attachment with the primary key. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment + * @throws PortalException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment getEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + @Override + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public com.liferay.portal.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of email template attachments + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public java.util.List getEmailTemplateAttachments( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of email template attachments. + * + * @return the number of email template attachments + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public int getEmailTemplateAttachmentsCount() + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Updates the email template attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was updated + * @throws SystemException if a system exception occurred + */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + public java.lang.String getBeanIdentifier(); + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + public void setBeanIdentifier(java.lang.String beanIdentifier); + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceClp.java new file mode 100644 index 00000000..0e395f01 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceClp.java @@ -0,0 +1,733 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service; + +import com.liferay.portal.service.InvokableLocalService; + +/** + * @author + * @generated + */ +public class EmailTemplateAttachmentLocalServiceClp + implements EmailTemplateAttachmentLocalService { + public EmailTemplateAttachmentLocalServiceClp( + InvokableLocalService invokableLocalService) { + _invokableLocalService = invokableLocalService; + + _methodName0 = "addEmailTemplateAttachment"; + + _methodParameterTypes0 = new String[] { + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment" + }; + + _methodName1 = "createEmailTemplateAttachment"; + + _methodParameterTypes1 = new String[] { + "it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK" + }; + + _methodName2 = "deleteEmailTemplateAttachment"; + + _methodParameterTypes2 = new String[] { + "it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK" + }; + + _methodName3 = "deleteEmailTemplateAttachment"; + + _methodParameterTypes3 = new String[] { + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment" + }; + + _methodName4 = "dynamicQuery"; + + _methodParameterTypes4 = new String[] { }; + + _methodName5 = "dynamicQuery"; + + _methodParameterTypes5 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery" + }; + + _methodName6 = "dynamicQuery"; + + _methodParameterTypes6 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" + }; + + _methodName7 = "dynamicQuery"; + + _methodParameterTypes7 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", + "com.liferay.portal.kernel.util.OrderByComparator" + }; + + _methodName8 = "dynamicQueryCount"; + + _methodParameterTypes8 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery" + }; + + _methodName9 = "dynamicQueryCount"; + + _methodParameterTypes9 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", + "com.liferay.portal.kernel.dao.orm.Projection" + }; + + _methodName10 = "fetchEmailTemplateAttachment"; + + _methodParameterTypes10 = new String[] { + "it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK" + }; + + _methodName11 = "getEmailTemplateAttachment"; + + _methodParameterTypes11 = new String[] { + "it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK" + }; + + _methodName12 = "getPersistedModel"; + + _methodParameterTypes12 = new String[] { "java.io.Serializable" }; + + _methodName13 = "getEmailTemplateAttachments"; + + _methodParameterTypes13 = new String[] { "int", "int" }; + + _methodName14 = "getEmailTemplateAttachmentsCount"; + + _methodParameterTypes14 = new String[] { }; + + _methodName15 = "updateEmailTemplateAttachment"; + + _methodParameterTypes15 = new String[] { + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment" + }; + + _methodName16 = "getBeanIdentifier"; + + _methodParameterTypes16 = new String[] { }; + + _methodName17 = "setBeanIdentifier"; + + _methodParameterTypes17 = new String[] { "java.lang.String" }; + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment addEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName0, + _methodParameterTypes0, + new Object[] { + ClpSerializer.translateInput(emailTemplateAttachment) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment createEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName1, + _methodParameterTypes1, + new Object[] { + ClpSerializer.translateInput(emailTemplateAttachmentPK) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName2, + _methodParameterTypes2, + new Object[] { + ClpSerializer.translateInput(emailTemplateAttachmentPK) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName3, + _methodParameterTypes3, + new Object[] { + ClpSerializer.translateInput(emailTemplateAttachment) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj); + } + + @Override + public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName4, + _methodParameterTypes4, 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 (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj); + } + + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName5, + _methodParameterTypes5, + new Object[] { ClpSerializer.translateInput(dynamicQuery) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName6, + _methodParameterTypes6, + new Object[] { + ClpSerializer.translateInput(dynamicQuery), + + start, + + end + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName7, + _methodParameterTypes7, + new Object[] { + ClpSerializer.translateInput(dynamicQuery), + + start, + + end, + + ClpSerializer.translateInput(orderByComparator) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName8, + _methodParameterTypes8, + new Object[] { ClpSerializer.translateInput(dynamicQuery) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Long)returnObj).longValue(); + } + + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName9, + _methodParameterTypes9, + new Object[] { + ClpSerializer.translateInput(dynamicQuery), + + ClpSerializer.translateInput(projection) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Long)returnObj).longValue(); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName10, + _methodParameterTypes10, + new Object[] { + ClpSerializer.translateInput(emailTemplateAttachmentPK) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment getEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName11, + _methodParameterTypes11, + new Object[] { + ClpSerializer.translateInput(emailTemplateAttachmentPK) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj); + } + + @Override + public com.liferay.portal.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName12, + _methodParameterTypes12, + new Object[] { ClpSerializer.translateInput(primaryKeyObj) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj); + } + + @Override + public java.util.List getEmailTemplateAttachments( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName13, + _methodParameterTypes13, new Object[] { start, end }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public int getEmailTemplateAttachmentsCount() + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName14, + _methodParameterTypes14, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Integer)returnObj).intValue(); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName15, + _methodParameterTypes15, + new Object[] { + ClpSerializer.translateInput(emailTemplateAttachment) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)ClpSerializer.translateOutput(returnObj); + } + + @Override + public java.lang.String getBeanIdentifier() { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName16, + _methodParameterTypes16, 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.lang.String)ClpSerializer.translateOutput(returnObj); + } + + @Override + public void setBeanIdentifier(java.lang.String beanIdentifier) { + try { + _invokableLocalService.invokeMethod(_methodName17, + _methodParameterTypes17, + new Object[] { ClpSerializer.translateInput(beanIdentifier) }); + } + 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"); + } + } + } + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + throw new UnsupportedOperationException(); + } + + private InvokableLocalService _invokableLocalService; + private String _methodName0; + private String[] _methodParameterTypes0; + private String _methodName1; + private String[] _methodParameterTypes1; + private String _methodName2; + private String[] _methodParameterTypes2; + private String _methodName3; + private String[] _methodParameterTypes3; + private String _methodName4; + private String[] _methodParameterTypes4; + private String _methodName5; + private String[] _methodParameterTypes5; + private String _methodName6; + private String[] _methodParameterTypes6; + private String _methodName7; + private String[] _methodParameterTypes7; + private String _methodName8; + private String[] _methodParameterTypes8; + private String _methodName9; + private String[] _methodParameterTypes9; + private String _methodName10; + private String[] _methodParameterTypes10; + private String _methodName11; + private String[] _methodParameterTypes11; + private String _methodName12; + private String[] _methodParameterTypes12; + private String _methodName13; + private String[] _methodParameterTypes13; + private String _methodName14; + private String[] _methodParameterTypes14; + private String _methodName15; + private String[] _methodParameterTypes15; + private String _methodName16; + private String[] _methodParameterTypes16; + private String _methodName17; + private String[] _methodParameterTypes17; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceUtil.java new file mode 100644 index 00000000..4228e961 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceUtil.java @@ -0,0 +1,313 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service; + +import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; +import com.liferay.portal.kernel.util.ReferenceRegistry; +import com.liferay.portal.service.InvokableLocalService; + +/** + * Provides the local service utility for EmailTemplateAttachment. This utility wraps + * {@link it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl} and is the + * primary access point for service operations in application layer code running + * on the local server. Methods of this service will not have security checks + * based on the propagated JAAS credentials because this service can only be + * accessed from within the same VM. + * + * @author + * @see EmailTemplateAttachmentLocalService + * @see it.tref.liferay.portos.mailmanager.service.base.EmailTemplateAttachmentLocalServiceBaseImpl + * @see it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl + * @generated + */ +public class EmailTemplateAttachmentLocalServiceUtil { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. + */ + + /** + * Adds the email template attachment to the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was added + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment addEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().addEmailTemplateAttachment(emailTemplateAttachment); + } + + /** + * Creates a new email template attachment with the primary key. Does not add the email template attachment to the database. + * + * @param emailTemplateAttachmentPK the primary key for the new email template attachment + * @return the new email template attachment + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment createEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) { + return getService() + .createEmailTemplateAttachment(emailTemplateAttachmentPK); + } + + /** + * Deletes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment that was removed + * @throws PortalException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .deleteEmailTemplateAttachment(emailTemplateAttachmentPK); + } + + /** + * Deletes the email template attachment from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was removed + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .deleteEmailTemplateAttachment(emailTemplateAttachment); + } + + public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { + return getService().dynamicQuery(); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public static java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().dynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public static java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) throws com.liferay.portal.kernel.exception.SystemException { + return getService().dynamicQuery(dynamicQuery, start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + * @throws SystemException if a system exception occurred + */ + @SuppressWarnings("rawtypes") + public static java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + public static long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().dynamicQueryCount(dynamicQuery); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + public static long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().dynamicQueryCount(dynamicQuery, projection); + } + + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .fetchEmailTemplateAttachment(emailTemplateAttachmentPK); + } + + /** + * Returns the email template attachment with the primary key. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment + * @throws PortalException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment getEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().getEmailTemplateAttachment(emailTemplateAttachmentPK); + } + + public static com.liferay.portal.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().getPersistedModel(primaryKeyObj); + } + + /** + * Returns a range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of email template attachments + * @throws SystemException if a system exception occurred + */ + public static java.util.List getEmailTemplateAttachments( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getEmailTemplateAttachments(start, end); + } + + /** + * Returns the number of email template attachments. + * + * @return the number of email template attachments + * @throws SystemException if a system exception occurred + */ + public static int getEmailTemplateAttachmentsCount() + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getEmailTemplateAttachmentsCount(); + } + + /** + * Updates the email template attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was updated + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .updateEmailTemplateAttachment(emailTemplateAttachment); + } + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + public static java.lang.String getBeanIdentifier() { + return getService().getBeanIdentifier(); + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + public static void setBeanIdentifier(java.lang.String beanIdentifier) { + getService().setBeanIdentifier(beanIdentifier); + } + + public static java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + return getService().invokeMethod(name, parameterTypes, arguments); + } + + public static void clearService() { + _service = null; + } + + public static EmailTemplateAttachmentLocalService getService() { + if (_service == null) { + InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), + EmailTemplateAttachmentLocalService.class.getName()); + + if (invokableLocalService instanceof EmailTemplateAttachmentLocalService) { + _service = (EmailTemplateAttachmentLocalService)invokableLocalService; + } + else { + _service = new EmailTemplateAttachmentLocalServiceClp(invokableLocalService); + } + + ReferenceRegistry.registerReference(EmailTemplateAttachmentLocalServiceUtil.class, + "_service"); + } + + return _service; + } + + /** + * @deprecated As of 6.2.0 + */ + public void setService(EmailTemplateAttachmentLocalService service) { + } + + private static EmailTemplateAttachmentLocalService _service; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceWrapper.java new file mode 100644 index 00000000..61a823b0 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceWrapper.java @@ -0,0 +1,320 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service; + +import com.liferay.portal.service.ServiceWrapper; + +/** + * Provides a wrapper for {@link EmailTemplateAttachmentLocalService}. + * + * @author + * @see EmailTemplateAttachmentLocalService + * @generated + */ +public class EmailTemplateAttachmentLocalServiceWrapper + implements EmailTemplateAttachmentLocalService, + ServiceWrapper { + public EmailTemplateAttachmentLocalServiceWrapper( + EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService) { + _emailTemplateAttachmentLocalService = emailTemplateAttachmentLocalService; + } + + /** + * Adds the email template attachment to the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was added + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment addEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.addEmailTemplateAttachment(emailTemplateAttachment); + } + + /** + * Creates a new email template attachment with the primary key. Does not add the email template attachment to the database. + * + * @param emailTemplateAttachmentPK the primary key for the new email template attachment + * @return the new email template attachment + */ + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment createEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) { + return _emailTemplateAttachmentLocalService.createEmailTemplateAttachment(emailTemplateAttachmentPK); + } + + /** + * Deletes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment that was removed + * @throws PortalException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.deleteEmailTemplateAttachment(emailTemplateAttachmentPK); + } + + /** + * Deletes the email template attachment from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was removed + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment deleteEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.deleteEmailTemplateAttachment(emailTemplateAttachment); + } + + @Override + public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { + return _emailTemplateAttachmentLocalService.dynamicQuery(); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.dynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.dynamicQuery(dynamicQuery, + start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.dynamicQuery(dynamicQuery, + start, end, orderByComparator); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.dynamicQueryCount(dynamicQuery); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.dynamicQueryCount(dynamicQuery, + projection); + } + + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.fetchEmailTemplateAttachment(emailTemplateAttachmentPK); + } + + /** + * Returns the email template attachment with the primary key. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment + * @throws PortalException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment getEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.getEmailTemplateAttachment(emailTemplateAttachmentPK); + } + + @Override + public com.liferay.portal.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.getPersistedModel(primaryKeyObj); + } + + /** + * Returns a range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public java.util.List getEmailTemplateAttachments( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.getEmailTemplateAttachments(start, + end); + } + + /** + * Returns the number of email template attachments. + * + * @return the number of email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public int getEmailTemplateAttachmentsCount() + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.getEmailTemplateAttachmentsCount(); + } + + /** + * Updates the email template attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was updated + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateEmailTemplateAttachment( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + return _emailTemplateAttachmentLocalService.updateEmailTemplateAttachment(emailTemplateAttachment); + } + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + @Override + public java.lang.String getBeanIdentifier() { + return _emailTemplateAttachmentLocalService.getBeanIdentifier(); + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + @Override + public void setBeanIdentifier(java.lang.String beanIdentifier) { + _emailTemplateAttachmentLocalService.setBeanIdentifier(beanIdentifier); + } + + @Override + public java.lang.Object invokeMethod(java.lang.String name, + java.lang.String[] parameterTypes, java.lang.Object[] arguments) + throws java.lang.Throwable { + return _emailTemplateAttachmentLocalService.invokeMethod(name, + parameterTypes, arguments); + } + + /** + * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} + */ + public EmailTemplateAttachmentLocalService getWrappedEmailTemplateAttachmentLocalService() { + return _emailTemplateAttachmentLocalService; + } + + /** + * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} + */ + public void setWrappedEmailTemplateAttachmentLocalService( + EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService) { + _emailTemplateAttachmentLocalService = emailTemplateAttachmentLocalService; + } + + @Override + public EmailTemplateAttachmentLocalService getWrappedService() { + return _emailTemplateAttachmentLocalService; + } + + @Override + public void setWrappedService( + EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService) { + _emailTemplateAttachmentLocalService = emailTemplateAttachmentLocalService; + } + + private EmailTemplateAttachmentLocalService _emailTemplateAttachmentLocalService; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentActionableDynamicQuery.java new file mode 100644 index 00000000..87bc9012 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentActionableDynamicQuery.java @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service.persistence; + +import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery; +import com.liferay.portal.kernel.exception.SystemException; + +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment; +import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil; + +/** + * @author + * @generated + */ +public abstract class EmailTemplateAttachmentActionableDynamicQuery + extends BaseActionableDynamicQuery { + public EmailTemplateAttachmentActionableDynamicQuery() + throws SystemException { + setBaseLocalService(EmailTemplateAttachmentLocalServiceUtil.getService()); + setClass(EmailTemplateAttachment.class); + + setClassLoader(it.tref.liferay.portos.mailmanager.service.ClpSerializer.class.getClassLoader()); + + setPrimaryKeyPropertyName("primaryKey.emailTemplateId"); + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPK.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPK.java new file mode 100644 index 00000000..f81f9368 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPK.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service.persistence; + +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; + +import java.io.Serializable; + +/** + * @author + * @generated + */ +public class EmailTemplateAttachmentPK implements Comparable, + Serializable { + public long emailTemplateId; + public long fileEntryId; + + public EmailTemplateAttachmentPK() { + } + + public EmailTemplateAttachmentPK(long emailTemplateId, long fileEntryId) { + this.emailTemplateId = emailTemplateId; + this.fileEntryId = fileEntryId; + } + + public long getEmailTemplateId() { + return emailTemplateId; + } + + public void setEmailTemplateId(long emailTemplateId) { + this.emailTemplateId = emailTemplateId; + } + + public long getFileEntryId() { + return fileEntryId; + } + + public void setFileEntryId(long fileEntryId) { + this.fileEntryId = fileEntryId; + } + + @Override + public int compareTo(EmailTemplateAttachmentPK pk) { + if (pk == null) { + return -1; + } + + int value = 0; + + if (emailTemplateId < pk.emailTemplateId) { + value = -1; + } + else if (emailTemplateId > pk.emailTemplateId) { + value = 1; + } + else { + value = 0; + } + + if (value != 0) { + return value; + } + + if (fileEntryId < pk.fileEntryId) { + value = -1; + } + else if (fileEntryId > pk.fileEntryId) { + value = 1; + } + else { + value = 0; + } + + if (value != 0) { + return value; + } + + return 0; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof EmailTemplateAttachmentPK)) { + return false; + } + + EmailTemplateAttachmentPK pk = (EmailTemplateAttachmentPK)obj; + + if ((emailTemplateId == pk.emailTemplateId) && + (fileEntryId == pk.fileEntryId)) { + return true; + } + else { + return false; + } + } + + @Override + public int hashCode() { + return (String.valueOf(emailTemplateId) + String.valueOf(fileEntryId)).hashCode(); + } + + @Override + public String toString() { + StringBundler sb = new StringBundler(10); + + sb.append(StringPool.OPEN_CURLY_BRACE); + + sb.append("emailTemplateId"); + sb.append(StringPool.EQUAL); + sb.append(emailTemplateId); + + sb.append(StringPool.COMMA); + sb.append(StringPool.SPACE); + sb.append("fileEntryId"); + sb.append(StringPool.EQUAL); + sb.append(fileEntryId); + + sb.append(StringPool.CLOSE_CURLY_BRACE); + + return sb.toString(); + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistence.java new file mode 100644 index 00000000..88be0961 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistence.java @@ -0,0 +1,362 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service.persistence; + +import com.liferay.portal.service.persistence.BasePersistence; + +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment; + +/** + * The persistence interface for the email template attachment service. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author + * @see EmailTemplateAttachmentPersistenceImpl + * @see EmailTemplateAttachmentUtil + * @generated + */ +public interface EmailTemplateAttachmentPersistence extends BasePersistence { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. Always use {@link EmailTemplateAttachmentUtil} to access the email template attachment persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. + */ + + /** + * Returns all the email template attachments where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @return the matching email template attachments + * @throws SystemException if a system exception occurred + */ + public java.util.List findByEmailTemplateId( + long emailTemplateId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the email template attachments where emailTemplateId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param emailTemplateId the email template ID + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of matching email template attachments + * @throws SystemException if a system exception occurred + */ + public java.util.List findByEmailTemplateId( + long emailTemplateId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the email template attachments where emailTemplateId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param emailTemplateId the email template ID + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching email template attachments + * @throws SystemException if a system exception occurred + */ + public java.util.List findByEmailTemplateId( + long emailTemplateId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByEmailTemplateId_First( + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException; + + /** + * Returns the first email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByEmailTemplateId_First( + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByEmailTemplateId_Last( + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException; + + /** + * Returns the last email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByEmailTemplateId_Last( + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the email template attachments before and after the current email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateAttachmentPK the primary key of the current email template attachment + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment[] findByEmailTemplateId_PrevAndNext( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK, + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException; + + /** + * Removes all the email template attachments where emailTemplateId = ? from the database. + * + * @param emailTemplateId the email template ID + * @throws SystemException if a system exception occurred + */ + public void removeByEmailTemplateId(long emailTemplateId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of email template attachments where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @return the number of matching email template attachments + * @throws SystemException if a system exception occurred + */ + public int countByEmailTemplateId(long emailTemplateId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the email template attachment where fileEntryId = ? or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found. + * + * @param fileEntryId the file entry ID + * @return the matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByFileEntryId( + long fileEntryId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException; + + /** + * Returns the email template attachment where fileEntryId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param fileEntryId the file entry ID + * @return the matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByFileEntryId( + long fileEntryId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the email template attachment where fileEntryId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param fileEntryId the file entry ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByFileEntryId( + long fileEntryId, boolean retrieveFromCache) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Removes the email template attachment where fileEntryId = ? from the database. + * + * @param fileEntryId the file entry ID + * @return the email template attachment that was removed + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment removeByFileEntryId( + long fileEntryId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException; + + /** + * Returns the number of email template attachments where fileEntryId = ?. + * + * @param fileEntryId the file entry ID + * @return the number of matching email template attachments + * @throws SystemException if a system exception occurred + */ + public int countByFileEntryId(long fileEntryId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Caches the email template attachment in the entity cache if it is enabled. + * + * @param emailTemplateAttachment the email template attachment + */ + public void cacheResult( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment); + + /** + * Caches the email template attachments in the entity cache if it is enabled. + * + * @param emailTemplateAttachments the email template attachments + */ + public void cacheResult( + java.util.List emailTemplateAttachments); + + /** + * Creates a new email template attachment with the primary key. Does not add the email template attachment to the database. + * + * @param emailTemplateAttachmentPK the primary key for the new email template attachment + * @return the new email template attachment + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment create( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK); + + /** + * Removes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment that was removed + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment remove( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException; + + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateImpl( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the email template attachment with the primary key or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByPrimaryKey( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException; + + /** + * Returns the email template attachment with the primary key or returns null if it could not be found. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment, or null if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByPrimaryKey( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns all the email template attachments. + * + * @return the email template attachments + * @throws SystemException if a system exception occurred + */ + public java.util.List findAll() + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of email template attachments + * @throws SystemException if a system exception occurred + */ + public java.util.List findAll( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of email template attachments + * @throws SystemException if a system exception occurred + */ + public java.util.List findAll( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Removes all the email template attachments from the database. + * + * @throws SystemException if a system exception occurred + */ + public void removeAll() + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of email template attachments. + * + * @return the number of email template attachments + * @throws SystemException if a system exception occurred + */ + public int countAll() + throws com.liferay.portal.kernel.exception.SystemException; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentUtil.java new file mode 100644 index 00000000..f6387abf --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentUtil.java @@ -0,0 +1,526 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service.persistence; + +import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.ReferenceRegistry; +import com.liferay.portal.service.ServiceContext; + +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment; + +import java.util.List; + +/** + * The persistence utility for the email template attachment service. This utility wraps {@link EmailTemplateAttachmentPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author + * @see EmailTemplateAttachmentPersistence + * @see EmailTemplateAttachmentPersistenceImpl + * @generated + */ +public class EmailTemplateAttachmentUtil { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. + */ + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() + */ + public static void clearCache() { + getPersistence().clearCache(); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) + */ + public static void clearCache( + EmailTemplateAttachment emailTemplateAttachment) { + getPersistence().clearCache(emailTemplateAttachment); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) + */ + public static long countWithDynamicQuery(DynamicQuery dynamicQuery) + throws SystemException { + return getPersistence().countWithDynamicQuery(dynamicQuery); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery) throws SystemException { + return getPersistence().findWithDynamicQuery(dynamicQuery); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery, int start, int end) + throws SystemException { + return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + return getPersistence() + .findWithDynamicQuery(dynamicQuery, start, end, + orderByComparator); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) + */ + public static EmailTemplateAttachment update( + EmailTemplateAttachment emailTemplateAttachment) + throws SystemException { + return getPersistence().update(emailTemplateAttachment); + } + + /** + * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) + */ + public static EmailTemplateAttachment update( + EmailTemplateAttachment emailTemplateAttachment, + ServiceContext serviceContext) throws SystemException { + return getPersistence().update(emailTemplateAttachment, serviceContext); + } + + /** + * Returns all the email template attachments where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @return the matching email template attachments + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByEmailTemplateId( + long emailTemplateId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByEmailTemplateId(emailTemplateId); + } + + /** + * Returns a range of all the email template attachments where emailTemplateId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param emailTemplateId the email template ID + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of matching email template attachments + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByEmailTemplateId( + long emailTemplateId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByEmailTemplateId(emailTemplateId, start, end); + } + + /** + * Returns an ordered range of all the email template attachments where emailTemplateId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param emailTemplateId the email template ID + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching email template attachments + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByEmailTemplateId( + long emailTemplateId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByEmailTemplateId(emailTemplateId, start, end, + orderByComparator); + } + + /** + * Returns the first email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByEmailTemplateId_First( + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException { + return getPersistence() + .findByEmailTemplateId_First(emailTemplateId, + orderByComparator); + } + + /** + * Returns the first email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByEmailTemplateId_First( + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByEmailTemplateId_First(emailTemplateId, + orderByComparator); + } + + /** + * Returns the last email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByEmailTemplateId_Last( + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException { + return getPersistence() + .findByEmailTemplateId_Last(emailTemplateId, + orderByComparator); + } + + /** + * Returns the last email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByEmailTemplateId_Last( + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByEmailTemplateId_Last(emailTemplateId, + orderByComparator); + } + + /** + * Returns the email template attachments before and after the current email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateAttachmentPK the primary key of the current email template attachment + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment[] findByEmailTemplateId_PrevAndNext( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK, + long emailTemplateId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException { + return getPersistence() + .findByEmailTemplateId_PrevAndNext(emailTemplateAttachmentPK, + emailTemplateId, orderByComparator); + } + + /** + * Removes all the email template attachments where emailTemplateId = ? from the database. + * + * @param emailTemplateId the email template ID + * @throws SystemException if a system exception occurred + */ + public static void removeByEmailTemplateId(long emailTemplateId) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeByEmailTemplateId(emailTemplateId); + } + + /** + * Returns the number of email template attachments where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @return the number of matching email template attachments + * @throws SystemException if a system exception occurred + */ + public static int countByEmailTemplateId(long emailTemplateId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByEmailTemplateId(emailTemplateId); + } + + /** + * Returns the email template attachment where fileEntryId = ? or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found. + * + * @param fileEntryId the file entry ID + * @return the matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByFileEntryId( + long fileEntryId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException { + return getPersistence().findByFileEntryId(fileEntryId); + } + + /** + * Returns the email template attachment where fileEntryId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param fileEntryId the file entry ID + * @return the matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByFileEntryId( + long fileEntryId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByFileEntryId(fileEntryId); + } + + /** + * Returns the email template attachment where fileEntryId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param fileEntryId the file entry ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByFileEntryId( + long fileEntryId, boolean retrieveFromCache) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByFileEntryId(fileEntryId, retrieveFromCache); + } + + /** + * Removes the email template attachment where fileEntryId = ? from the database. + * + * @param fileEntryId the file entry ID + * @return the email template attachment that was removed + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment removeByFileEntryId( + long fileEntryId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException { + return getPersistence().removeByFileEntryId(fileEntryId); + } + + /** + * Returns the number of email template attachments where fileEntryId = ?. + * + * @param fileEntryId the file entry ID + * @return the number of matching email template attachments + * @throws SystemException if a system exception occurred + */ + public static int countByFileEntryId(long fileEntryId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByFileEntryId(fileEntryId); + } + + /** + * Caches the email template attachment in the entity cache if it is enabled. + * + * @param emailTemplateAttachment the email template attachment + */ + public static void cacheResult( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) { + getPersistence().cacheResult(emailTemplateAttachment); + } + + /** + * Caches the email template attachments in the entity cache if it is enabled. + * + * @param emailTemplateAttachments the email template attachments + */ + public static void cacheResult( + java.util.List emailTemplateAttachments) { + getPersistence().cacheResult(emailTemplateAttachments); + } + + /** + * Creates a new email template attachment with the primary key. Does not add the email template attachment to the database. + * + * @param emailTemplateAttachmentPK the primary key for the new email template attachment + * @return the new email template attachment + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment create( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) { + return getPersistence().create(emailTemplateAttachmentPK); + } + + /** + * Removes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment that was removed + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment remove( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException { + return getPersistence().remove(emailTemplateAttachmentPK); + } + + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment updateImpl( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().updateImpl(emailTemplateAttachment); + } + + /** + * Returns the email template attachment with the primary key or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment findByPrimaryKey( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException { + return getPersistence().findByPrimaryKey(emailTemplateAttachmentPK); + } + + /** + * Returns the email template attachment with the primary key or returns null if it could not be found. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment, or null if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment fetchByPrimaryKey( + it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByPrimaryKey(emailTemplateAttachmentPK); + } + + /** + * Returns all the email template attachments. + * + * @return the email template attachments + * @throws SystemException if a system exception occurred + */ + public static java.util.List findAll() + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findAll(); + } + + /** + * Returns a range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of email template attachments + * @throws SystemException if a system exception occurred + */ + public static java.util.List findAll( + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findAll(start, end); + } + + /** + * Returns an ordered range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of email template attachments + * @throws SystemException if a system exception occurred + */ + public static java.util.List findAll( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findAll(start, end, orderByComparator); + } + + /** + * Removes all the email template attachments from the database. + * + * @throws SystemException if a system exception occurred + */ + public static void removeAll() + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeAll(); + } + + /** + * Returns the number of email template attachments. + * + * @return the number of email template attachments + * @throws SystemException if a system exception occurred + */ + public static int countAll() + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countAll(); + } + + public static EmailTemplateAttachmentPersistence getPersistence() { + if (_persistence == null) { + _persistence = (EmailTemplateAttachmentPersistence)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.mailmanager.service.ClpSerializer.getServletContextName(), + EmailTemplateAttachmentPersistence.class.getName()); + + ReferenceRegistry.registerReference(EmailTemplateAttachmentUtil.class, + "_persistence"); + } + + return _persistence; + } + + /** + * @deprecated As of 6.2.0 + */ + public void setPersistence(EmailTemplateAttachmentPersistence persistence) { + } + + private static EmailTemplateAttachmentPersistence _persistence; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/hook/listener/DLFileEntryListener.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/hook/listener/DLFileEntryListener.java index e2996dc5..cb48abaa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/hook/listener/DLFileEntryListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/hook/listener/DLFileEntryListener.java @@ -1,11 +1,26 @@ package it.tref.liferay.portos.mailmanager.hook.listener; +import it.tref.liferay.portos.mailmanager.model.EmailAttachment; +import it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalServiceUtil; + import com.liferay.portal.ModelListenerException; +import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.model.BaseModelListener; import com.liferay.portlet.documentlibrary.model.DLFileEntry; public class DLFileEntryListener extends BaseModelListener { @Override - public void onBeforeRemove(DLFileEntry model) throws ModelListenerException {} + public void onBeforeRemove(DLFileEntry model) throws ModelListenerException { + + try { + EmailAttachment emailAttachment = EmailAttachmentLocalServiceUtil + .fetchByFileEntryId(model.getFileEntryId()); + if (emailAttachment != null) { + throw new ModelListenerException(); + } + } catch (SystemException e) { + throw new ModelListenerException(e); + } + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentBaseImpl.java new file mode 100644 index 00000000..7936a52f --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentBaseImpl.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model.impl; + +import com.liferay.portal.kernel.exception.SystemException; + +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment; +import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil; + +/** + * The extended model base implementation for the EmailTemplateAttachment service. Represents a row in the "portos_Mail_EmailTemplateAttachment" database table, with each column mapped to a property of this class. + * + *

+ * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link EmailTemplateAttachmentImpl}. + *

+ * + * @author + * @see EmailTemplateAttachmentImpl + * @see it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment + * @generated + */ +public abstract class EmailTemplateAttachmentBaseImpl + extends EmailTemplateAttachmentModelImpl implements EmailTemplateAttachment { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. All methods that expect a email template attachment model instance should use the {@link EmailTemplateAttachment} interface instead. + */ + @Override + public void persist() throws SystemException { + if (this.isNew()) { + EmailTemplateAttachmentLocalServiceUtil.addEmailTemplateAttachment(this); + } + else { + EmailTemplateAttachmentLocalServiceUtil.updateEmailTemplateAttachment(this); + } + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentCacheModel.java new file mode 100644 index 00000000..5fdaf2c2 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentCacheModel.java @@ -0,0 +1,76 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model.impl; + +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.model.CacheModel; + +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +/** + * The cache model class for representing EmailTemplateAttachment in entity cache. + * + * @author + * @see EmailTemplateAttachment + * @generated + */ +public class EmailTemplateAttachmentCacheModel implements CacheModel, + Externalizable { + @Override + public String toString() { + StringBundler sb = new StringBundler(5); + + sb.append("{emailTemplateId="); + sb.append(emailTemplateId); + sb.append(", fileEntryId="); + sb.append(fileEntryId); + sb.append("}"); + + return sb.toString(); + } + + @Override + public EmailTemplateAttachment toEntityModel() { + EmailTemplateAttachmentImpl emailTemplateAttachmentImpl = new EmailTemplateAttachmentImpl(); + + emailTemplateAttachmentImpl.setEmailTemplateId(emailTemplateId); + emailTemplateAttachmentImpl.setFileEntryId(fileEntryId); + + emailTemplateAttachmentImpl.resetOriginalValues(); + + return emailTemplateAttachmentImpl; + } + + @Override + public void readExternal(ObjectInput objectInput) throws IOException { + emailTemplateId = objectInput.readLong(); + fileEntryId = objectInput.readLong(); + } + + @Override + public void writeExternal(ObjectOutput objectOutput) + throws IOException { + objectOutput.writeLong(emailTemplateId); + objectOutput.writeLong(fileEntryId); + } + + public long emailTemplateId; + public long fileEntryId; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentImpl.java new file mode 100644 index 00000000..47a5a5a8 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentImpl.java @@ -0,0 +1,34 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model.impl; + +/** + * The extended model implementation for the EmailTemplateAttachment service. Represents a row in the "portos_Mail_EmailTemplateAttachment" database table, with each column mapped to a property of this class. + * + *

+ * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment} interface. + *

+ * + * @author + */ +public class EmailTemplateAttachmentImpl extends EmailTemplateAttachmentBaseImpl { + /* + * NOTE FOR DEVELOPERS: + * + * Never reference this class directly. All methods that expect a email template attachment model instance should use the {@link it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment} interface instead. + */ + public EmailTemplateAttachmentImpl() { + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentModelImpl.java new file mode 100644 index 00000000..771a7473 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentModelImpl.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.model.impl; + +import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.ProxyUtil; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.model.CacheModel; +import com.liferay.portal.model.impl.BaseModelImpl; + +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment; +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachmentModel; +import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK; + +import java.io.Serializable; + +import java.sql.Types; + +import java.util.HashMap; +import java.util.Map; + +/** + * The base model implementation for the EmailTemplateAttachment service. Represents a row in the "portos_Mail_EmailTemplateAttachment" database table, with each column mapped to a property of this class. + * + *

+ * This implementation and its corresponding interface {@link it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachmentModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link EmailTemplateAttachmentImpl}. + *

+ * + * @author + * @see EmailTemplateAttachmentImpl + * @see it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment + * @see it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachmentModel + * @generated + */ +public class EmailTemplateAttachmentModelImpl extends BaseModelImpl + implements EmailTemplateAttachmentModel { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. All methods that expect a email template attachment model instance should use the {@link it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment} interface instead. + */ + public static final String TABLE_NAME = "portos_Mail_EmailTemplateAttachment"; + public static final Object[][] TABLE_COLUMNS = { + { "emailTemplateId", Types.BIGINT }, + { "fileEntryId", Types.BIGINT } + }; + public static final String TABLE_SQL_CREATE = "create table portos_Mail_EmailTemplateAttachment (emailTemplateId LONG not null,fileEntryId LONG not null,primary key (emailTemplateId, fileEntryId))"; + public static final String TABLE_SQL_DROP = "drop table portos_Mail_EmailTemplateAttachment"; + public static final String ORDER_BY_JPQL = " ORDER BY emailTemplateAttachment.id.emailTemplateId ASC, emailTemplateAttachment.id.fileEntryId ASC"; + public static final String ORDER_BY_SQL = " ORDER BY portos_Mail_EmailTemplateAttachment.emailTemplateId ASC, portos_Mail_EmailTemplateAttachment.fileEntryId ASC"; + public static final String DATA_SOURCE = "liferayDataSource"; + public static final String SESSION_FACTORY = "liferaySessionFactory"; + public static final String TX_MANAGER = "liferayTransactionManager"; + public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( + "value.object.entity.cache.enabled.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"), + true); + public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( + "value.object.finder.cache.enabled.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"), + true); + public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( + "value.object.column.bitmask.enabled.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"), + true); + public static long EMAILTEMPLATEID_COLUMN_BITMASK = 1L; + public static long FILEENTRYID_COLUMN_BITMASK = 2L; + public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get( + "lock.expiration.time.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment")); + + public EmailTemplateAttachmentModelImpl() { + } + + @Override + public EmailTemplateAttachmentPK getPrimaryKey() { + return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId); + } + + @Override + public void setPrimaryKey(EmailTemplateAttachmentPK primaryKey) { + setEmailTemplateId(primaryKey.emailTemplateId); + setFileEntryId(primaryKey.fileEntryId); + } + + @Override + public Serializable getPrimaryKeyObj() { + return new EmailTemplateAttachmentPK(_emailTemplateId, _fileEntryId); + } + + @Override + public void setPrimaryKeyObj(Serializable primaryKeyObj) { + setPrimaryKey((EmailTemplateAttachmentPK)primaryKeyObj); + } + + @Override + public Class getModelClass() { + return EmailTemplateAttachment.class; + } + + @Override + public String getModelClassName() { + return EmailTemplateAttachment.class.getName(); + } + + @Override + public Map getModelAttributes() { + Map attributes = new HashMap(); + + attributes.put("emailTemplateId", getEmailTemplateId()); + attributes.put("fileEntryId", getFileEntryId()); + + return attributes; + } + + @Override + public void setModelAttributes(Map attributes) { + Long emailTemplateId = (Long)attributes.get("emailTemplateId"); + + if (emailTemplateId != null) { + setEmailTemplateId(emailTemplateId); + } + + Long fileEntryId = (Long)attributes.get("fileEntryId"); + + if (fileEntryId != null) { + setFileEntryId(fileEntryId); + } + } + + @Override + public long getEmailTemplateId() { + return _emailTemplateId; + } + + @Override + public void setEmailTemplateId(long emailTemplateId) { + _columnBitmask |= EMAILTEMPLATEID_COLUMN_BITMASK; + + if (!_setOriginalEmailTemplateId) { + _setOriginalEmailTemplateId = true; + + _originalEmailTemplateId = _emailTemplateId; + } + + _emailTemplateId = emailTemplateId; + } + + public long getOriginalEmailTemplateId() { + return _originalEmailTemplateId; + } + + @Override + public long getFileEntryId() { + return _fileEntryId; + } + + @Override + public void setFileEntryId(long fileEntryId) { + _columnBitmask |= FILEENTRYID_COLUMN_BITMASK; + + if (!_setOriginalFileEntryId) { + _setOriginalFileEntryId = true; + + _originalFileEntryId = _fileEntryId; + } + + _fileEntryId = fileEntryId; + } + + public long getOriginalFileEntryId() { + return _originalFileEntryId; + } + + public long getColumnBitmask() { + return _columnBitmask; + } + + @Override + public EmailTemplateAttachment toEscapedModel() { + if (_escapedModel == null) { + _escapedModel = (EmailTemplateAttachment)ProxyUtil.newProxyInstance(_classLoader, + _escapedModelInterfaces, new AutoEscapeBeanHandler(this)); + } + + return _escapedModel; + } + + @Override + public Object clone() { + EmailTemplateAttachmentImpl emailTemplateAttachmentImpl = new EmailTemplateAttachmentImpl(); + + emailTemplateAttachmentImpl.setEmailTemplateId(getEmailTemplateId()); + emailTemplateAttachmentImpl.setFileEntryId(getFileEntryId()); + + emailTemplateAttachmentImpl.resetOriginalValues(); + + return emailTemplateAttachmentImpl; + } + + @Override + public int compareTo(EmailTemplateAttachment emailTemplateAttachment) { + EmailTemplateAttachmentPK primaryKey = emailTemplateAttachment.getPrimaryKey(); + + return getPrimaryKey().compareTo(primaryKey); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + + if (!(obj instanceof EmailTemplateAttachment)) { + return false; + } + + EmailTemplateAttachment emailTemplateAttachment = (EmailTemplateAttachment)obj; + + EmailTemplateAttachmentPK primaryKey = emailTemplateAttachment.getPrimaryKey(); + + if (getPrimaryKey().equals(primaryKey)) { + return true; + } + else { + return false; + } + } + + @Override + public int hashCode() { + return getPrimaryKey().hashCode(); + } + + @Override + public void resetOriginalValues() { + EmailTemplateAttachmentModelImpl emailTemplateAttachmentModelImpl = this; + + emailTemplateAttachmentModelImpl._originalEmailTemplateId = emailTemplateAttachmentModelImpl._emailTemplateId; + + emailTemplateAttachmentModelImpl._setOriginalEmailTemplateId = false; + + emailTemplateAttachmentModelImpl._originalFileEntryId = emailTemplateAttachmentModelImpl._fileEntryId; + + emailTemplateAttachmentModelImpl._setOriginalFileEntryId = false; + + emailTemplateAttachmentModelImpl._columnBitmask = 0; + } + + @Override + public CacheModel toCacheModel() { + EmailTemplateAttachmentCacheModel emailTemplateAttachmentCacheModel = new EmailTemplateAttachmentCacheModel(); + + emailTemplateAttachmentCacheModel.emailTemplateId = getEmailTemplateId(); + + emailTemplateAttachmentCacheModel.fileEntryId = getFileEntryId(); + + return emailTemplateAttachmentCacheModel; + } + + @Override + public String toString() { + StringBundler sb = new StringBundler(5); + + sb.append("{emailTemplateId="); + sb.append(getEmailTemplateId()); + sb.append(", fileEntryId="); + sb.append(getFileEntryId()); + sb.append("}"); + + return sb.toString(); + } + + @Override + public String toXmlString() { + StringBundler sb = new StringBundler(10); + + sb.append(""); + sb.append( + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"); + sb.append(""); + + sb.append( + "emailTemplateId"); + sb.append( + "fileEntryId"); + + sb.append(""); + + return sb.toString(); + } + + private static ClassLoader _classLoader = EmailTemplateAttachment.class.getClassLoader(); + private static Class[] _escapedModelInterfaces = new Class[] { + EmailTemplateAttachment.class + }; + private long _emailTemplateId; + private long _originalEmailTemplateId; + private boolean _setOriginalEmailTemplateId; + private long _fileEntryId; + private long _originalFileEntryId; + private boolean _setOriginalFileEntryId; + private long _columnBitmask; + private EmailTemplateAttachment _escapedModel; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceBaseImpl.java new file mode 100644 index 00000000..26fdc98f --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceBaseImpl.java @@ -0,0 +1,797 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service.base; + +import com.liferay.portal.kernel.bean.BeanReference; +import com.liferay.portal.kernel.bean.IdentifiableBean; +import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; +import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; +import com.liferay.portal.kernel.dao.orm.Projection; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.search.Indexable; +import com.liferay.portal.kernel.search.IndexableType; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.model.PersistedModel; +import com.liferay.portal.service.BaseLocalServiceImpl; +import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil; +import com.liferay.portal.service.persistence.CompanyPersistence; +import com.liferay.portal.service.persistence.UserPersistence; + +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment; +import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService; +import it.tref.liferay.portos.mailmanager.service.persistence.EmailAttachmentPersistence; +import it.tref.liferay.portos.mailmanager.service.persistence.EmailPersistence; +import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK; +import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPersistence; +import it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplatePersistence; + +import java.io.Serializable; + +import java.util.List; + +import javax.sql.DataSource; + +/** + * Provides the base implementation for the email template attachment local service. + * + *

+ * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl}. + *

+ * + * @author + * @see it.tref.liferay.portos.mailmanager.service.impl.EmailTemplateAttachmentLocalServiceImpl + * @see it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil + * @generated + */ +public abstract class EmailTemplateAttachmentLocalServiceBaseImpl + extends BaseLocalServiceImpl implements EmailTemplateAttachmentLocalService, + IdentifiableBean { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil} to access the email template attachment local service. + */ + + /** + * Adds the email template attachment to the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was added + * @throws SystemException if a system exception occurred + */ + @Indexable(type = IndexableType.REINDEX) + @Override + public EmailTemplateAttachment addEmailTemplateAttachment( + EmailTemplateAttachment emailTemplateAttachment) + throws SystemException { + emailTemplateAttachment.setNew(true); + + return emailTemplateAttachmentPersistence.update(emailTemplateAttachment); + } + + /** + * Creates a new email template attachment with the primary key. Does not add the email template attachment to the database. + * + * @param emailTemplateAttachmentPK the primary key for the new email template attachment + * @return the new email template attachment + */ + @Override + public EmailTemplateAttachment createEmailTemplateAttachment( + EmailTemplateAttachmentPK emailTemplateAttachmentPK) { + return emailTemplateAttachmentPersistence.create(emailTemplateAttachmentPK); + } + + /** + * Deletes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment that was removed + * @throws PortalException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Indexable(type = IndexableType.DELETE) + @Override + public EmailTemplateAttachment deleteEmailTemplateAttachment( + EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws PortalException, SystemException { + return emailTemplateAttachmentPersistence.remove(emailTemplateAttachmentPK); + } + + /** + * Deletes the email template attachment from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was removed + * @throws SystemException if a system exception occurred + */ + @Indexable(type = IndexableType.DELETE) + @Override + public EmailTemplateAttachment deleteEmailTemplateAttachment( + EmailTemplateAttachment emailTemplateAttachment) + throws SystemException { + return emailTemplateAttachmentPersistence.remove(emailTemplateAttachment); + } + + @Override + public DynamicQuery dynamicQuery() { + Class clazz = getClass(); + + return DynamicQueryFactoryUtil.forClass(EmailTemplateAttachment.class, + clazz.getClassLoader()); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public List dynamicQuery(DynamicQuery dynamicQuery) + throws SystemException { + return emailTemplateAttachmentPersistence.findWithDynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) + throws SystemException { + return emailTemplateAttachmentPersistence.findWithDynamicQuery(dynamicQuery, + start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + * @throws SystemException if a system exception occurred + */ + @Override + @SuppressWarnings("rawtypes") + public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + return emailTemplateAttachmentPersistence.findWithDynamicQuery(dynamicQuery, + start, end, orderByComparator); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + @Override + public long dynamicQueryCount(DynamicQuery dynamicQuery) + throws SystemException { + return emailTemplateAttachmentPersistence.countWithDynamicQuery(dynamicQuery); + } + + /** + * Returns the number of rows that match the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows that match the dynamic query + * @throws SystemException if a system exception occurred + */ + @Override + public long dynamicQueryCount(DynamicQuery dynamicQuery, + Projection projection) throws SystemException { + return emailTemplateAttachmentPersistence.countWithDynamicQuery(dynamicQuery, + projection); + } + + @Override + public EmailTemplateAttachment fetchEmailTemplateAttachment( + EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws SystemException { + return emailTemplateAttachmentPersistence.fetchByPrimaryKey(emailTemplateAttachmentPK); + } + + /** + * Returns the email template attachment with the primary key. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment + * @throws PortalException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment getEmailTemplateAttachment( + EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws PortalException, SystemException { + return emailTemplateAttachmentPersistence.findByPrimaryKey(emailTemplateAttachmentPK); + } + + @Override + public PersistedModel getPersistedModel(Serializable primaryKeyObj) + throws PortalException, SystemException { + return emailTemplateAttachmentPersistence.findByPrimaryKey(primaryKeyObj); + } + + /** + * Returns a range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public List getEmailTemplateAttachments( + int start, int end) throws SystemException { + return emailTemplateAttachmentPersistence.findAll(start, end); + } + + /** + * Returns the number of email template attachments. + * + * @return the number of email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public int getEmailTemplateAttachmentsCount() throws SystemException { + return emailTemplateAttachmentPersistence.countAll(); + } + + /** + * Updates the email template attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachment the email template attachment + * @return the email template attachment that was updated + * @throws SystemException if a system exception occurred + */ + @Indexable(type = IndexableType.REINDEX) + @Override + public EmailTemplateAttachment updateEmailTemplateAttachment( + EmailTemplateAttachment emailTemplateAttachment) + throws SystemException { + return emailTemplateAttachmentPersistence.update(emailTemplateAttachment); + } + + /** + * Returns the email local service. + * + * @return the email local service + */ + public it.tref.liferay.portos.mailmanager.service.EmailLocalService getEmailLocalService() { + return emailLocalService; + } + + /** + * Sets the email local service. + * + * @param emailLocalService the email local service + */ + public void setEmailLocalService( + it.tref.liferay.portos.mailmanager.service.EmailLocalService emailLocalService) { + this.emailLocalService = emailLocalService; + } + + /** + * Returns the email remote service. + * + * @return the email remote service + */ + public it.tref.liferay.portos.mailmanager.service.EmailService getEmailService() { + return emailService; + } + + /** + * Sets the email remote service. + * + * @param emailService the email remote service + */ + public void setEmailService( + it.tref.liferay.portos.mailmanager.service.EmailService emailService) { + this.emailService = emailService; + } + + /** + * Returns the email persistence. + * + * @return the email persistence + */ + public EmailPersistence getEmailPersistence() { + return emailPersistence; + } + + /** + * Sets the email persistence. + * + * @param emailPersistence the email persistence + */ + public void setEmailPersistence(EmailPersistence emailPersistence) { + this.emailPersistence = emailPersistence; + } + + /** + * Returns the email attachment local service. + * + * @return the email attachment local service + */ + public it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalService getEmailAttachmentLocalService() { + return emailAttachmentLocalService; + } + + /** + * Sets the email attachment local service. + * + * @param emailAttachmentLocalService the email attachment local service + */ + public void setEmailAttachmentLocalService( + it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalService emailAttachmentLocalService) { + this.emailAttachmentLocalService = emailAttachmentLocalService; + } + + /** + * Returns the email attachment persistence. + * + * @return the email attachment persistence + */ + public EmailAttachmentPersistence getEmailAttachmentPersistence() { + return emailAttachmentPersistence; + } + + /** + * Sets the email attachment persistence. + * + * @param emailAttachmentPersistence the email attachment persistence + */ + public void setEmailAttachmentPersistence( + EmailAttachmentPersistence emailAttachmentPersistence) { + this.emailAttachmentPersistence = emailAttachmentPersistence; + } + + /** + * Returns the email template local service. + * + * @return the email template local service + */ + public it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalService getEmailTemplateLocalService() { + return emailTemplateLocalService; + } + + /** + * Sets the email template local service. + * + * @param emailTemplateLocalService the email template local service + */ + public void setEmailTemplateLocalService( + it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalService emailTemplateLocalService) { + this.emailTemplateLocalService = emailTemplateLocalService; + } + + /** + * Returns the email template remote service. + * + * @return the email template remote service + */ + public it.tref.liferay.portos.mailmanager.service.EmailTemplateService getEmailTemplateService() { + return emailTemplateService; + } + + /** + * Sets the email template remote service. + * + * @param emailTemplateService the email template remote service + */ + public void setEmailTemplateService( + it.tref.liferay.portos.mailmanager.service.EmailTemplateService emailTemplateService) { + this.emailTemplateService = emailTemplateService; + } + + /** + * Returns the email template persistence. + * + * @return the email template persistence + */ + public EmailTemplatePersistence getEmailTemplatePersistence() { + return emailTemplatePersistence; + } + + /** + * Sets the email template persistence. + * + * @param emailTemplatePersistence the email template persistence + */ + public void setEmailTemplatePersistence( + EmailTemplatePersistence emailTemplatePersistence) { + this.emailTemplatePersistence = emailTemplatePersistence; + } + + /** + * Returns the email template attachment local service. + * + * @return the email template attachment local service + */ + public it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService getEmailTemplateAttachmentLocalService() { + return emailTemplateAttachmentLocalService; + } + + /** + * Sets the email template attachment local service. + * + * @param emailTemplateAttachmentLocalService the email template attachment local service + */ + public void setEmailTemplateAttachmentLocalService( + it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService) { + this.emailTemplateAttachmentLocalService = emailTemplateAttachmentLocalService; + } + + /** + * Returns the email template attachment persistence. + * + * @return the email template attachment persistence + */ + public EmailTemplateAttachmentPersistence getEmailTemplateAttachmentPersistence() { + return emailTemplateAttachmentPersistence; + } + + /** + * Sets the email template attachment persistence. + * + * @param emailTemplateAttachmentPersistence the email template attachment persistence + */ + public void setEmailTemplateAttachmentPersistence( + EmailTemplateAttachmentPersistence emailTemplateAttachmentPersistence) { + this.emailTemplateAttachmentPersistence = emailTemplateAttachmentPersistence; + } + + /** + * Returns the counter local service. + * + * @return the counter local service + */ + public com.liferay.counter.service.CounterLocalService getCounterLocalService() { + return counterLocalService; + } + + /** + * Sets the counter local service. + * + * @param counterLocalService the counter local service + */ + public void setCounterLocalService( + com.liferay.counter.service.CounterLocalService counterLocalService) { + this.counterLocalService = counterLocalService; + } + + /** + * Returns the company local service. + * + * @return the company local service + */ + public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() { + return companyLocalService; + } + + /** + * Sets the company local service. + * + * @param companyLocalService the company local service + */ + public void setCompanyLocalService( + com.liferay.portal.service.CompanyLocalService companyLocalService) { + this.companyLocalService = companyLocalService; + } + + /** + * Returns the company remote service. + * + * @return the company remote service + */ + public com.liferay.portal.service.CompanyService getCompanyService() { + return companyService; + } + + /** + * Sets the company remote service. + * + * @param companyService the company remote service + */ + public void setCompanyService( + com.liferay.portal.service.CompanyService companyService) { + this.companyService = companyService; + } + + /** + * Returns the company persistence. + * + * @return the company persistence + */ + public CompanyPersistence getCompanyPersistence() { + return companyPersistence; + } + + /** + * Sets the company persistence. + * + * @param companyPersistence the company persistence + */ + public void setCompanyPersistence(CompanyPersistence companyPersistence) { + this.companyPersistence = companyPersistence; + } + + /** + * Returns the resource local service. + * + * @return the resource local service + */ + public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { + return resourceLocalService; + } + + /** + * Sets the resource local service. + * + * @param resourceLocalService the resource local service + */ + public void setResourceLocalService( + com.liferay.portal.service.ResourceLocalService resourceLocalService) { + this.resourceLocalService = resourceLocalService; + } + + /** + * Returns the user local service. + * + * @return the user local service + */ + public com.liferay.portal.service.UserLocalService getUserLocalService() { + return userLocalService; + } + + /** + * Sets the user local service. + * + * @param userLocalService the user local service + */ + public void setUserLocalService( + com.liferay.portal.service.UserLocalService userLocalService) { + this.userLocalService = userLocalService; + } + + /** + * Returns the user remote service. + * + * @return the user remote service + */ + public com.liferay.portal.service.UserService getUserService() { + return userService; + } + + /** + * Sets the user remote service. + * + * @param userService the user remote service + */ + public void setUserService( + com.liferay.portal.service.UserService userService) { + this.userService = userService; + } + + /** + * Returns the user persistence. + * + * @return the user persistence + */ + public UserPersistence getUserPersistence() { + return userPersistence; + } + + /** + * Sets the user persistence. + * + * @param userPersistence the user persistence + */ + public void setUserPersistence(UserPersistence userPersistence) { + this.userPersistence = userPersistence; + } + + /** + * Returns the d l app local service. + * + * @return the d l app local service + */ + public com.liferay.portlet.documentlibrary.service.DLAppLocalService getDLAppLocalService() { + return dlAppLocalService; + } + + /** + * Sets the d l app local service. + * + * @param dlAppLocalService the d l app local service + */ + public void setDLAppLocalService( + com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService) { + this.dlAppLocalService = dlAppLocalService; + } + + /** + * Returns the d l app remote service. + * + * @return the d l app remote service + */ + public com.liferay.portlet.documentlibrary.service.DLAppService getDLAppService() { + return dlAppService; + } + + /** + * Sets the d l app remote service. + * + * @param dlAppService the d l app remote service + */ + public void setDLAppService( + com.liferay.portlet.documentlibrary.service.DLAppService dlAppService) { + this.dlAppService = dlAppService; + } + + public void afterPropertiesSet() { + Class clazz = getClass(); + + _classLoader = clazz.getClassLoader(); + + PersistedModelLocalServiceRegistryUtil.register("it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment", + emailTemplateAttachmentLocalService); + } + + public void destroy() { + PersistedModelLocalServiceRegistryUtil.unregister( + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"); + } + + /** + * Returns the Spring bean ID for this bean. + * + * @return the Spring bean ID for this bean + */ + @Override + public String getBeanIdentifier() { + return _beanIdentifier; + } + + /** + * Sets the Spring bean ID for this bean. + * + * @param beanIdentifier the Spring bean ID for this bean + */ + @Override + public void setBeanIdentifier(String beanIdentifier) { + _beanIdentifier = beanIdentifier; + } + + @Override + public Object invokeMethod(String name, String[] parameterTypes, + Object[] arguments) throws Throwable { + Thread currentThread = Thread.currentThread(); + + ClassLoader contextClassLoader = currentThread.getContextClassLoader(); + + if (contextClassLoader != _classLoader) { + currentThread.setContextClassLoader(_classLoader); + } + + try { + return _clpInvoker.invokeMethod(name, parameterTypes, arguments); + } + finally { + if (contextClassLoader != _classLoader) { + currentThread.setContextClassLoader(contextClassLoader); + } + } + } + + protected Class getModelClass() { + return EmailTemplateAttachment.class; + } + + protected String getModelClassName() { + return EmailTemplateAttachment.class.getName(); + } + + /** + * Performs an SQL query. + * + * @param sql the sql query + */ + protected void runSQL(String sql) throws SystemException { + try { + DataSource dataSource = emailTemplateAttachmentPersistence.getDataSource(); + + SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, + sql, new int[0]); + + sqlUpdate.update(); + } + catch (Exception e) { + throw new SystemException(e); + } + } + + @BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailLocalService.class) + protected it.tref.liferay.portos.mailmanager.service.EmailLocalService emailLocalService; + @BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailService.class) + protected it.tref.liferay.portos.mailmanager.service.EmailService emailService; + @BeanReference(type = EmailPersistence.class) + protected EmailPersistence emailPersistence; + @BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalService.class) + protected it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalService emailAttachmentLocalService; + @BeanReference(type = EmailAttachmentPersistence.class) + protected EmailAttachmentPersistence emailAttachmentPersistence; + @BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalService.class) + protected it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalService emailTemplateLocalService; + @BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailTemplateService.class) + protected it.tref.liferay.portos.mailmanager.service.EmailTemplateService emailTemplateService; + @BeanReference(type = EmailTemplatePersistence.class) + protected EmailTemplatePersistence emailTemplatePersistence; + @BeanReference(type = it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService.class) + protected it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalService emailTemplateAttachmentLocalService; + @BeanReference(type = EmailTemplateAttachmentPersistence.class) + protected EmailTemplateAttachmentPersistence emailTemplateAttachmentPersistence; + @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) + protected com.liferay.counter.service.CounterLocalService counterLocalService; + @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class) + protected com.liferay.portal.service.CompanyLocalService companyLocalService; + @BeanReference(type = com.liferay.portal.service.CompanyService.class) + protected com.liferay.portal.service.CompanyService companyService; + @BeanReference(type = CompanyPersistence.class) + protected CompanyPersistence companyPersistence; + @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) + protected com.liferay.portal.service.ResourceLocalService resourceLocalService; + @BeanReference(type = com.liferay.portal.service.UserLocalService.class) + protected com.liferay.portal.service.UserLocalService userLocalService; + @BeanReference(type = com.liferay.portal.service.UserService.class) + protected com.liferay.portal.service.UserService userService; + @BeanReference(type = UserPersistence.class) + protected UserPersistence userPersistence; + @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppLocalService.class) + protected com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService; + @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppService.class) + protected com.liferay.portlet.documentlibrary.service.DLAppService dlAppService; + private String _beanIdentifier; + private ClassLoader _classLoader; + private EmailTemplateAttachmentLocalServiceClpInvoker _clpInvoker = new EmailTemplateAttachmentLocalServiceClpInvoker(); +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceClpInvoker.java new file mode 100644 index 00000000..63c9b89d --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceClpInvoker.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service.base; + +import it.tref.liferay.portos.mailmanager.service.EmailTemplateAttachmentLocalServiceUtil; + +import java.util.Arrays; + +/** + * @author + * @generated + */ +public class EmailTemplateAttachmentLocalServiceClpInvoker { + public EmailTemplateAttachmentLocalServiceClpInvoker() { + _methodName0 = "addEmailTemplateAttachment"; + + _methodParameterTypes0 = new String[] { + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment" + }; + + _methodName1 = "createEmailTemplateAttachment"; + + _methodParameterTypes1 = new String[] { + "it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK" + }; + + _methodName2 = "deleteEmailTemplateAttachment"; + + _methodParameterTypes2 = new String[] { + "it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK" + }; + + _methodName3 = "deleteEmailTemplateAttachment"; + + _methodParameterTypes3 = new String[] { + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment" + }; + + _methodName4 = "dynamicQuery"; + + _methodParameterTypes4 = new String[] { }; + + _methodName5 = "dynamicQuery"; + + _methodParameterTypes5 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery" + }; + + _methodName6 = "dynamicQuery"; + + _methodParameterTypes6 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" + }; + + _methodName7 = "dynamicQuery"; + + _methodParameterTypes7 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", + "com.liferay.portal.kernel.util.OrderByComparator" + }; + + _methodName8 = "dynamicQueryCount"; + + _methodParameterTypes8 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery" + }; + + _methodName9 = "dynamicQueryCount"; + + _methodParameterTypes9 = new String[] { + "com.liferay.portal.kernel.dao.orm.DynamicQuery", + "com.liferay.portal.kernel.dao.orm.Projection" + }; + + _methodName10 = "fetchEmailTemplateAttachment"; + + _methodParameterTypes10 = new String[] { + "it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK" + }; + + _methodName11 = "getEmailTemplateAttachment"; + + _methodParameterTypes11 = new String[] { + "it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK" + }; + + _methodName12 = "getPersistedModel"; + + _methodParameterTypes12 = new String[] { "java.io.Serializable" }; + + _methodName13 = "getEmailTemplateAttachments"; + + _methodParameterTypes13 = new String[] { "int", "int" }; + + _methodName14 = "getEmailTemplateAttachmentsCount"; + + _methodParameterTypes14 = new String[] { }; + + _methodName15 = "updateEmailTemplateAttachment"; + + _methodParameterTypes15 = new String[] { + "it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment" + }; + + _methodName58 = "getBeanIdentifier"; + + _methodParameterTypes58 = new String[] { }; + + _methodName59 = "setBeanIdentifier"; + + _methodParameterTypes59 = new String[] { "java.lang.String" }; + } + + public Object invokeMethod(String name, String[] parameterTypes, + Object[] arguments) throws Throwable { + if (_methodName0.equals(name) && + Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.addEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)arguments[0]); + } + + if (_methodName1.equals(name) && + Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.createEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK)arguments[0]); + } + + if (_methodName2.equals(name) && + Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.deleteEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK)arguments[0]); + } + + if (_methodName3.equals(name) && + Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.deleteEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)arguments[0]); + } + + if (_methodName4.equals(name) && + Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.dynamicQuery(); + } + + if (_methodName5.equals(name) && + Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); + } + + if (_methodName6.equals(name) && + Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue()); + } + + if (_methodName7.equals(name) && + Arrays.deepEquals(_methodParameterTypes7, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); + } + + if (_methodName8.equals(name) && + Arrays.deepEquals(_methodParameterTypes8, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); + } + + if (_methodName9.equals(name) && + Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], + (com.liferay.portal.kernel.dao.orm.Projection)arguments[1]); + } + + if (_methodName10.equals(name) && + Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.fetchEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK)arguments[0]); + } + + if (_methodName11.equals(name) && + Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.getEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.service.persistence.EmailTemplateAttachmentPK)arguments[0]); + } + + if (_methodName12.equals(name) && + Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]); + } + + if (_methodName13.equals(name) && + Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.getEmailTemplateAttachments(((Integer)arguments[0]).intValue(), + ((Integer)arguments[1]).intValue()); + } + + if (_methodName14.equals(name) && + Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.getEmailTemplateAttachmentsCount(); + } + + if (_methodName15.equals(name) && + Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.updateEmailTemplateAttachment((it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment)arguments[0]); + } + + if (_methodName58.equals(name) && + Arrays.deepEquals(_methodParameterTypes58, parameterTypes)) { + return EmailTemplateAttachmentLocalServiceUtil.getBeanIdentifier(); + } + + if (_methodName59.equals(name) && + Arrays.deepEquals(_methodParameterTypes59, parameterTypes)) { + EmailTemplateAttachmentLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); + + return null; + } + + throw new UnsupportedOperationException(); + } + + private String _methodName0; + private String[] _methodParameterTypes0; + private String _methodName1; + private String[] _methodParameterTypes1; + private String _methodName2; + private String[] _methodParameterTypes2; + private String _methodName3; + private String[] _methodParameterTypes3; + private String _methodName4; + private String[] _methodParameterTypes4; + private String _methodName5; + private String[] _methodParameterTypes5; + private String _methodName6; + private String[] _methodParameterTypes6; + private String _methodName7; + private String[] _methodParameterTypes7; + private String _methodName8; + private String[] _methodParameterTypes8; + private String _methodName9; + private String[] _methodParameterTypes9; + private String _methodName10; + private String[] _methodParameterTypes10; + private String _methodName11; + private String[] _methodParameterTypes11; + private String _methodName12; + private String[] _methodParameterTypes12; + private String _methodName13; + private String[] _methodParameterTypes13; + private String _methodName14; + private String[] _methodParameterTypes14; + private String _methodName15; + private String[] _methodParameterTypes15; + private String _methodName58; + private String[] _methodParameterTypes58; + private String _methodName59; + private String[] _methodParameterTypes59; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistenceImpl.java new file mode 100644 index 00000000..e4b7375a --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistenceImpl.java @@ -0,0 +1,1491 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.mailmanager.service.persistence; + +import com.liferay.portal.kernel.cache.CacheRegistryUtil; +import com.liferay.portal.kernel.dao.orm.EntityCacheUtil; +import com.liferay.portal.kernel.dao.orm.FinderCacheUtil; +import com.liferay.portal.kernel.dao.orm.FinderPath; +import com.liferay.portal.kernel.dao.orm.Query; +import com.liferay.portal.kernel.dao.orm.QueryPos; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.dao.orm.Session; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.InstanceFactory; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.PropsKeys; +import com.liferay.portal.kernel.util.PropsUtil; +import com.liferay.portal.kernel.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.kernel.util.UnmodifiableList; +import com.liferay.portal.model.CacheModel; +import com.liferay.portal.model.ModelListener; +import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; + +import it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException; +import it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment; +import it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentImpl; +import it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl; + +import java.io.Serializable; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * The persistence implementation for the email template attachment service. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author + * @see EmailTemplateAttachmentPersistence + * @see EmailTemplateAttachmentUtil + * @generated + */ +public class EmailTemplateAttachmentPersistenceImpl extends BasePersistenceImpl + implements EmailTemplateAttachmentPersistence { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. Always use {@link EmailTemplateAttachmentUtil} to access the email template attachment persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class. + */ + public static final String FINDER_CLASS_NAME_ENTITY = EmailTemplateAttachmentImpl.class.getName(); + public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION = FINDER_CLASS_NAME_ENTITY + + ".List1"; + public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION = FINDER_CLASS_NAME_ENTITY + + ".List2"; + public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL = new FinderPath(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentModelImpl.FINDER_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findAll", new String[0]); + public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL = new FinderPath(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentModelImpl.FINDER_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findAll", new String[0]); + public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]); + public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_EMAILTEMPLATEID = + new FinderPath(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentModelImpl.FINDER_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByEmailTemplateId", + new String[] { + Long.class.getName(), + + Integer.class.getName(), Integer.class.getName(), + OrderByComparator.class.getName() + }); + public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILTEMPLATEID = + new FinderPath(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentModelImpl.FINDER_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByEmailTemplateId", + new String[] { Long.class.getName() }, + EmailTemplateAttachmentModelImpl.EMAILTEMPLATEID_COLUMN_BITMASK); + public static final FinderPath FINDER_PATH_COUNT_BY_EMAILTEMPLATEID = new FinderPath(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, + "countByEmailTemplateId", new String[] { Long.class.getName() }); + + /** + * Returns all the email template attachments where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @return the matching email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public List findByEmailTemplateId( + long emailTemplateId) throws SystemException { + return findByEmailTemplateId(emailTemplateId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the email template attachments where emailTemplateId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param emailTemplateId the email template ID + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of matching email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public List findByEmailTemplateId( + long emailTemplateId, int start, int end) throws SystemException { + return findByEmailTemplateId(emailTemplateId, start, end, null); + } + + /** + * Returns an ordered range of all the email template attachments where emailTemplateId = ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param emailTemplateId the email template ID + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public List findByEmailTemplateId( + long emailTemplateId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + boolean pagination = true; + FinderPath finderPath = null; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILTEMPLATEID; + finderArgs = new Object[] { emailTemplateId }; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_EMAILTEMPLATEID; + finderArgs = new Object[] { + emailTemplateId, + + start, end, orderByComparator + }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (EmailTemplateAttachment emailTemplateAttachment : list) { + if ((emailTemplateId != emailTemplateAttachment.getEmailTemplateId())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(3 + + (orderByComparator.getOrderByFields().length * 3)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_EMAILTEMPLATEATTACHMENT_WHERE); + + query.append(_FINDER_COLUMN_EMAILTEMPLATEID_EMAILTEMPLATEID_2); + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(EmailTemplateAttachmentModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(emailTemplateId); + + if (!pagination) { + list = (List)QueryUtil.list(q, + getDialect(), start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, + getDialect(), start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Returns the first email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment findByEmailTemplateId_First( + long emailTemplateId, OrderByComparator orderByComparator) + throws NoSuchEmailTemplateAttachmentException, SystemException { + EmailTemplateAttachment emailTemplateAttachment = fetchByEmailTemplateId_First(emailTemplateId, + orderByComparator); + + if (emailTemplateAttachment != null) { + return emailTemplateAttachment; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("emailTemplateId="); + msg.append(emailTemplateId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchEmailTemplateAttachmentException(msg.toString()); + } + + /** + * Returns the first email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment fetchByEmailTemplateId_First( + long emailTemplateId, OrderByComparator orderByComparator) + throws SystemException { + List list = findByEmailTemplateId(emailTemplateId, + 0, 1, orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment findByEmailTemplateId_Last( + long emailTemplateId, OrderByComparator orderByComparator) + throws NoSuchEmailTemplateAttachmentException, SystemException { + EmailTemplateAttachment emailTemplateAttachment = fetchByEmailTemplateId_Last(emailTemplateId, + orderByComparator); + + if (emailTemplateAttachment != null) { + return emailTemplateAttachment; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("emailTemplateId="); + msg.append(emailTemplateId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchEmailTemplateAttachmentException(msg.toString()); + } + + /** + * Returns the last email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment fetchByEmailTemplateId_Last( + long emailTemplateId, OrderByComparator orderByComparator) + throws SystemException { + int count = countByEmailTemplateId(emailTemplateId); + + if (count == 0) { + return null; + } + + List list = findByEmailTemplateId(emailTemplateId, + count - 1, count, orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the email template attachments before and after the current email template attachment in the ordered set where emailTemplateId = ?. + * + * @param emailTemplateAttachmentPK the primary key of the current email template attachment + * @param emailTemplateId the email template ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment[] findByEmailTemplateId_PrevAndNext( + EmailTemplateAttachmentPK emailTemplateAttachmentPK, + long emailTemplateId, OrderByComparator orderByComparator) + throws NoSuchEmailTemplateAttachmentException, SystemException { + EmailTemplateAttachment emailTemplateAttachment = findByPrimaryKey(emailTemplateAttachmentPK); + + Session session = null; + + try { + session = openSession(); + + EmailTemplateAttachment[] array = new EmailTemplateAttachmentImpl[3]; + + array[0] = getByEmailTemplateId_PrevAndNext(session, + emailTemplateAttachment, emailTemplateId, + orderByComparator, true); + + array[1] = emailTemplateAttachment; + + array[2] = getByEmailTemplateId_PrevAndNext(session, + emailTemplateAttachment, emailTemplateId, + orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected EmailTemplateAttachment getByEmailTemplateId_PrevAndNext( + Session session, EmailTemplateAttachment emailTemplateAttachment, + long emailTemplateId, OrderByComparator orderByComparator, + boolean previous) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(6 + + (orderByComparator.getOrderByFields().length * 6)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_EMAILTEMPLATEATTACHMENT_WHERE); + + query.append(_FINDER_COLUMN_EMAILTEMPLATEID_EMAILTEMPLATEID_2); + + if (orderByComparator != null) { + String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); + + if (orderByConditionFields.length > 0) { + query.append(WHERE_AND); + } + + for (int i = 0; i < orderByConditionFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByConditionFields[i]); + + if ((i + 1) < orderByConditionFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN_HAS_NEXT); + } + else { + query.append(WHERE_LESSER_THAN_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN); + } + else { + query.append(WHERE_LESSER_THAN); + } + } + } + + query.append(ORDER_BY_CLAUSE); + + String[] orderByFields = orderByComparator.getOrderByFields(); + + for (int i = 0; i < orderByFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByFields[i]); + + if ((i + 1) < orderByFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC_HAS_NEXT); + } + else { + query.append(ORDER_BY_DESC_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC); + } + else { + query.append(ORDER_BY_DESC); + } + } + } + } + else { + query.append(EmailTemplateAttachmentModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Query q = session.createQuery(sql); + + q.setFirstResult(0); + q.setMaxResults(2); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(emailTemplateId); + + if (orderByComparator != null) { + Object[] values = orderByComparator.getOrderByConditionValues(emailTemplateAttachment); + + for (Object value : values) { + qPos.add(value); + } + } + + List list = q.list(); + + if (list.size() == 2) { + return list.get(1); + } + else { + return null; + } + } + + /** + * Removes all the email template attachments where emailTemplateId = ? from the database. + * + * @param emailTemplateId the email template ID + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByEmailTemplateId(long emailTemplateId) + throws SystemException { + for (EmailTemplateAttachment emailTemplateAttachment : findByEmailTemplateId( + emailTemplateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(emailTemplateAttachment); + } + } + + /** + * Returns the number of email template attachments where emailTemplateId = ?. + * + * @param emailTemplateId the email template ID + * @return the number of matching email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public int countByEmailTemplateId(long emailTemplateId) + throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_EMAILTEMPLATEID; + + Object[] finderArgs = new Object[] { emailTemplateId }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(2); + + query.append(_SQL_COUNT_EMAILTEMPLATEATTACHMENT_WHERE); + + query.append(_FINDER_COLUMN_EMAILTEMPLATEID_EMAILTEMPLATEID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(emailTemplateId); + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(finderPath, finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_EMAILTEMPLATEID_EMAILTEMPLATEID_2 = + "emailTemplateAttachment.id.emailTemplateId = ?"; + public static final FinderPath FINDER_PATH_FETCH_BY_FILEENTRYID = new FinderPath(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentModelImpl.FINDER_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, FINDER_CLASS_NAME_ENTITY, + "fetchByFileEntryId", new String[] { Long.class.getName() }, + EmailTemplateAttachmentModelImpl.FILEENTRYID_COLUMN_BITMASK); + public static final FinderPath FINDER_PATH_COUNT_BY_FILEENTRYID = new FinderPath(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByFileEntryId", + new String[] { Long.class.getName() }); + + /** + * Returns the email template attachment where fileEntryId = ? or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found. + * + * @param fileEntryId the file entry ID + * @return the matching email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment findByFileEntryId(long fileEntryId) + throws NoSuchEmailTemplateAttachmentException, SystemException { + EmailTemplateAttachment emailTemplateAttachment = fetchByFileEntryId(fileEntryId); + + if (emailTemplateAttachment == null) { + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("fileEntryId="); + msg.append(fileEntryId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + if (_log.isWarnEnabled()) { + _log.warn(msg.toString()); + } + + throw new NoSuchEmailTemplateAttachmentException(msg.toString()); + } + + return emailTemplateAttachment; + } + + /** + * Returns the email template attachment where fileEntryId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param fileEntryId the file entry ID + * @return the matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment fetchByFileEntryId(long fileEntryId) + throws SystemException { + return fetchByFileEntryId(fileEntryId, true); + } + + /** + * Returns the email template attachment where fileEntryId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param fileEntryId the file entry ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching email template attachment, or null if a matching email template attachment could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment fetchByFileEntryId(long fileEntryId, + boolean retrieveFromCache) throws SystemException { + Object[] finderArgs = new Object[] { fileEntryId }; + + Object result = null; + + if (retrieveFromCache) { + result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_FILEENTRYID, + finderArgs, this); + } + + if (result instanceof EmailTemplateAttachment) { + EmailTemplateAttachment emailTemplateAttachment = (EmailTemplateAttachment)result; + + if ((fileEntryId != emailTemplateAttachment.getFileEntryId())) { + result = null; + } + } + + if (result == null) { + StringBundler query = new StringBundler(3); + + query.append(_SQL_SELECT_EMAILTEMPLATEATTACHMENT_WHERE); + + query.append(_FINDER_COLUMN_FILEENTRYID_FILEENTRYID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(fileEntryId); + + List list = q.list(); + + if (list.isEmpty()) { + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FILEENTRYID, + finderArgs, list); + } + else { + if ((list.size() > 1) && _log.isWarnEnabled()) { + _log.warn( + "EmailTemplateAttachmentPersistenceImpl.fetchByFileEntryId(long, boolean) with parameters (" + + StringUtil.merge(finderArgs) + + ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); + } + + EmailTemplateAttachment emailTemplateAttachment = list.get(0); + + result = emailTemplateAttachment; + + cacheResult(emailTemplateAttachment); + + if ((emailTemplateAttachment.getFileEntryId() != fileEntryId)) { + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FILEENTRYID, + finderArgs, emailTemplateAttachment); + } + } + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_FILEENTRYID, + finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + if (result instanceof List) { + return null; + } + else { + return (EmailTemplateAttachment)result; + } + } + + /** + * Removes the email template attachment where fileEntryId = ? from the database. + * + * @param fileEntryId the file entry ID + * @return the email template attachment that was removed + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment removeByFileEntryId(long fileEntryId) + throws NoSuchEmailTemplateAttachmentException, SystemException { + EmailTemplateAttachment emailTemplateAttachment = findByFileEntryId(fileEntryId); + + return remove(emailTemplateAttachment); + } + + /** + * Returns the number of email template attachments where fileEntryId = ?. + * + * @param fileEntryId the file entry ID + * @return the number of matching email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public int countByFileEntryId(long fileEntryId) throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_FILEENTRYID; + + Object[] finderArgs = new Object[] { fileEntryId }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(2); + + query.append(_SQL_COUNT_EMAILTEMPLATEATTACHMENT_WHERE); + + query.append(_FINDER_COLUMN_FILEENTRYID_FILEENTRYID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(fileEntryId); + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(finderPath, finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_FILEENTRYID_FILEENTRYID_2 = "emailTemplateAttachment.id.fileEntryId = ?"; + + public EmailTemplateAttachmentPersistenceImpl() { + setModelClass(EmailTemplateAttachment.class); + } + + /** + * Caches the email template attachment in the entity cache if it is enabled. + * + * @param emailTemplateAttachment the email template attachment + */ + @Override + public void cacheResult(EmailTemplateAttachment emailTemplateAttachment) { + EntityCacheUtil.putResult(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + emailTemplateAttachment.getPrimaryKey(), emailTemplateAttachment); + + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FILEENTRYID, + new Object[] { emailTemplateAttachment.getFileEntryId() }, + emailTemplateAttachment); + + emailTemplateAttachment.resetOriginalValues(); + } + + /** + * Caches the email template attachments in the entity cache if it is enabled. + * + * @param emailTemplateAttachments the email template attachments + */ + @Override + public void cacheResult( + List emailTemplateAttachments) { + for (EmailTemplateAttachment emailTemplateAttachment : emailTemplateAttachments) { + if (EntityCacheUtil.getResult( + EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + emailTemplateAttachment.getPrimaryKey()) == null) { + cacheResult(emailTemplateAttachment); + } + else { + emailTemplateAttachment.resetOriginalValues(); + } + } + } + + /** + * Clears the cache for all email template attachments. + * + *

+ * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. + *

+ */ + @Override + public void clearCache() { + if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { + CacheRegistryUtil.clear(EmailTemplateAttachmentImpl.class.getName()); + } + + EntityCacheUtil.clearCache(EmailTemplateAttachmentImpl.class.getName()); + + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY); + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + } + + /** + * Clears the cache for the email template attachment. + * + *

+ * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. + *

+ */ + @Override + public void clearCache(EmailTemplateAttachment emailTemplateAttachment) { + EntityCacheUtil.removeResult(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + emailTemplateAttachment.getPrimaryKey()); + + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + + clearUniqueFindersCache(emailTemplateAttachment); + } + + @Override + public void clearCache( + List emailTemplateAttachments) { + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + + for (EmailTemplateAttachment emailTemplateAttachment : emailTemplateAttachments) { + EntityCacheUtil.removeResult(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + emailTemplateAttachment.getPrimaryKey()); + + clearUniqueFindersCache(emailTemplateAttachment); + } + } + + protected void cacheUniqueFindersCache( + EmailTemplateAttachment emailTemplateAttachment) { + if (emailTemplateAttachment.isNew()) { + Object[] args = new Object[] { + emailTemplateAttachment.getFileEntryId() + }; + + FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_FILEENTRYID, args, + Long.valueOf(1)); + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FILEENTRYID, args, + emailTemplateAttachment); + } + else { + EmailTemplateAttachmentModelImpl emailTemplateAttachmentModelImpl = (EmailTemplateAttachmentModelImpl)emailTemplateAttachment; + + if ((emailTemplateAttachmentModelImpl.getColumnBitmask() & + FINDER_PATH_FETCH_BY_FILEENTRYID.getColumnBitmask()) != 0) { + Object[] args = new Object[] { + emailTemplateAttachment.getFileEntryId() + }; + + FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_FILEENTRYID, + args, Long.valueOf(1)); + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FILEENTRYID, + args, emailTemplateAttachment); + } + } + } + + protected void clearUniqueFindersCache( + EmailTemplateAttachment emailTemplateAttachment) { + EmailTemplateAttachmentModelImpl emailTemplateAttachmentModelImpl = (EmailTemplateAttachmentModelImpl)emailTemplateAttachment; + + Object[] args = new Object[] { emailTemplateAttachment.getFileEntryId() }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_FILEENTRYID, args); + FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_FILEENTRYID, args); + + if ((emailTemplateAttachmentModelImpl.getColumnBitmask() & + FINDER_PATH_FETCH_BY_FILEENTRYID.getColumnBitmask()) != 0) { + args = new Object[] { + emailTemplateAttachmentModelImpl.getOriginalFileEntryId() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_FILEENTRYID, args); + FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_FILEENTRYID, args); + } + } + + /** + * Creates a new email template attachment with the primary key. Does not add the email template attachment to the database. + * + * @param emailTemplateAttachmentPK the primary key for the new email template attachment + * @return the new email template attachment + */ + @Override + public EmailTemplateAttachment create( + EmailTemplateAttachmentPK emailTemplateAttachmentPK) { + EmailTemplateAttachment emailTemplateAttachment = new EmailTemplateAttachmentImpl(); + + emailTemplateAttachment.setNew(true); + emailTemplateAttachment.setPrimaryKey(emailTemplateAttachmentPK); + + return emailTemplateAttachment; + } + + /** + * Removes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment that was removed + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment remove( + EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws NoSuchEmailTemplateAttachmentException, SystemException { + return remove((Serializable)emailTemplateAttachmentPK); + } + + /** + * Removes the email template attachment with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param primaryKey the primary key of the email template attachment + * @return the email template attachment that was removed + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment remove(Serializable primaryKey) + throws NoSuchEmailTemplateAttachmentException, SystemException { + Session session = null; + + try { + session = openSession(); + + EmailTemplateAttachment emailTemplateAttachment = (EmailTemplateAttachment)session.get(EmailTemplateAttachmentImpl.class, + primaryKey); + + if (emailTemplateAttachment == null) { + if (_log.isWarnEnabled()) { + _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); + } + + throw new NoSuchEmailTemplateAttachmentException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + + primaryKey); + } + + return remove(emailTemplateAttachment); + } + catch (NoSuchEmailTemplateAttachmentException nsee) { + throw nsee; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + @Override + protected EmailTemplateAttachment removeImpl( + EmailTemplateAttachment emailTemplateAttachment) + throws SystemException { + emailTemplateAttachment = toUnwrappedModel(emailTemplateAttachment); + + Session session = null; + + try { + session = openSession(); + + if (!session.contains(emailTemplateAttachment)) { + emailTemplateAttachment = (EmailTemplateAttachment)session.get(EmailTemplateAttachmentImpl.class, + emailTemplateAttachment.getPrimaryKeyObj()); + } + + if (emailTemplateAttachment != null) { + session.delete(emailTemplateAttachment); + } + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + + if (emailTemplateAttachment != null) { + clearCache(emailTemplateAttachment); + } + + return emailTemplateAttachment; + } + + @Override + public EmailTemplateAttachment updateImpl( + it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment emailTemplateAttachment) + throws SystemException { + emailTemplateAttachment = toUnwrappedModel(emailTemplateAttachment); + + boolean isNew = emailTemplateAttachment.isNew(); + + EmailTemplateAttachmentModelImpl emailTemplateAttachmentModelImpl = (EmailTemplateAttachmentModelImpl)emailTemplateAttachment; + + Session session = null; + + try { + session = openSession(); + + if (emailTemplateAttachment.isNew()) { + session.save(emailTemplateAttachment); + + emailTemplateAttachment.setNew(false); + } + else { + session.merge(emailTemplateAttachment); + } + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + + if (isNew || !EmailTemplateAttachmentModelImpl.COLUMN_BITMASK_ENABLED) { + FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + } + + else { + if ((emailTemplateAttachmentModelImpl.getColumnBitmask() & + FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILTEMPLATEID.getColumnBitmask()) != 0) { + Object[] args = new Object[] { + emailTemplateAttachmentModelImpl.getOriginalEmailTemplateId() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_EMAILTEMPLATEID, + args); + FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILTEMPLATEID, + args); + + args = new Object[] { + emailTemplateAttachmentModelImpl.getEmailTemplateId() + }; + + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_EMAILTEMPLATEID, + args); + FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILTEMPLATEID, + args); + } + } + + EntityCacheUtil.putResult(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, + emailTemplateAttachment.getPrimaryKey(), emailTemplateAttachment); + + clearUniqueFindersCache(emailTemplateAttachment); + cacheUniqueFindersCache(emailTemplateAttachment); + + return emailTemplateAttachment; + } + + protected EmailTemplateAttachment toUnwrappedModel( + EmailTemplateAttachment emailTemplateAttachment) { + if (emailTemplateAttachment instanceof EmailTemplateAttachmentImpl) { + return emailTemplateAttachment; + } + + EmailTemplateAttachmentImpl emailTemplateAttachmentImpl = new EmailTemplateAttachmentImpl(); + + emailTemplateAttachmentImpl.setNew(emailTemplateAttachment.isNew()); + emailTemplateAttachmentImpl.setPrimaryKey(emailTemplateAttachment.getPrimaryKey()); + + emailTemplateAttachmentImpl.setEmailTemplateId(emailTemplateAttachment.getEmailTemplateId()); + emailTemplateAttachmentImpl.setFileEntryId(emailTemplateAttachment.getFileEntryId()); + + return emailTemplateAttachmentImpl; + } + + /** + * Returns the email template attachment with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found. + * + * @param primaryKey the primary key of the email template attachment + * @return the email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment findByPrimaryKey(Serializable primaryKey) + throws NoSuchEmailTemplateAttachmentException, SystemException { + EmailTemplateAttachment emailTemplateAttachment = fetchByPrimaryKey(primaryKey); + + if (emailTemplateAttachment == null) { + if (_log.isWarnEnabled()) { + _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); + } + + throw new NoSuchEmailTemplateAttachmentException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + + primaryKey); + } + + return emailTemplateAttachment; + } + + /** + * Returns the email template attachment with the primary key or throws a {@link it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException} if it could not be found. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment + * @throws it.tref.liferay.portos.mailmanager.NoSuchEmailTemplateAttachmentException if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment findByPrimaryKey( + EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws NoSuchEmailTemplateAttachmentException, SystemException { + return findByPrimaryKey((Serializable)emailTemplateAttachmentPK); + } + + /** + * Returns the email template attachment with the primary key or returns null if it could not be found. + * + * @param primaryKey the primary key of the email template attachment + * @return the email template attachment, or null if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment fetchByPrimaryKey(Serializable primaryKey) + throws SystemException { + EmailTemplateAttachment emailTemplateAttachment = (EmailTemplateAttachment)EntityCacheUtil.getResult(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, primaryKey); + + if (emailTemplateAttachment == _nullEmailTemplateAttachment) { + return null; + } + + if (emailTemplateAttachment == null) { + Session session = null; + + try { + session = openSession(); + + emailTemplateAttachment = (EmailTemplateAttachment)session.get(EmailTemplateAttachmentImpl.class, + primaryKey); + + if (emailTemplateAttachment != null) { + cacheResult(emailTemplateAttachment); + } + else { + EntityCacheUtil.putResult(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, primaryKey, + _nullEmailTemplateAttachment); + } + } + catch (Exception e) { + EntityCacheUtil.removeResult(EmailTemplateAttachmentModelImpl.ENTITY_CACHE_ENABLED, + EmailTemplateAttachmentImpl.class, primaryKey); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return emailTemplateAttachment; + } + + /** + * Returns the email template attachment with the primary key or returns null if it could not be found. + * + * @param emailTemplateAttachmentPK the primary key of the email template attachment + * @return the email template attachment, or null if a email template attachment with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public EmailTemplateAttachment fetchByPrimaryKey( + EmailTemplateAttachmentPK emailTemplateAttachmentPK) + throws SystemException { + return fetchByPrimaryKey((Serializable)emailTemplateAttachmentPK); + } + + /** + * Returns all the email template attachments. + * + * @return the email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public List findAll() throws SystemException { + return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @return the range of email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public List findAll(int start, int end) + throws SystemException { + return findAll(start, end, null); + } + + /** + * Returns an ordered range of all the email template attachments. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.mailmanager.model.impl.EmailTemplateAttachmentModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param start the lower bound of the range of email template attachments + * @param end the upper bound of the range of email template attachments (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public List findAll(int start, int end, + OrderByComparator orderByComparator) throws SystemException { + boolean pagination = true; + FinderPath finderPath = null; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL; + finderArgs = FINDER_ARGS_EMPTY; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_ALL; + finderArgs = new Object[] { start, end, orderByComparator }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if (list == null) { + StringBundler query = null; + String sql = null; + + if (orderByComparator != null) { + query = new StringBundler(2 + + (orderByComparator.getOrderByFields().length * 3)); + + query.append(_SQL_SELECT_EMAILTEMPLATEATTACHMENT); + + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + + sql = query.toString(); + } + else { + sql = _SQL_SELECT_EMAILTEMPLATEATTACHMENT; + + if (pagination) { + sql = sql.concat(EmailTemplateAttachmentModelImpl.ORDER_BY_JPQL); + } + } + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + if (!pagination) { + list = (List)QueryUtil.list(q, + getDialect(), start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, + getDialect(), start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Removes all the email template attachments from the database. + * + * @throws SystemException if a system exception occurred + */ + @Override + public void removeAll() throws SystemException { + for (EmailTemplateAttachment emailTemplateAttachment : findAll()) { + remove(emailTemplateAttachment); + } + } + + /** + * Returns the number of email template attachments. + * + * @return the number of email template attachments + * @throws SystemException if a system exception occurred + */ + @Override + public int countAll() throws SystemException { + Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, + FINDER_ARGS_EMPTY, this); + + if (count == null) { + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(_SQL_COUNT_EMAILTEMPLATEATTACHMENT); + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, + FINDER_ARGS_EMPTY, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL, + FINDER_ARGS_EMPTY); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + /** + * Initializes the email template attachment persistence. + */ + public void afterPropertiesSet() { + String[] listenerClassNames = StringUtil.split(GetterUtil.getString( + com.liferay.util.service.ServiceProps.get( + "value.object.listener.it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment"))); + + if (listenerClassNames.length > 0) { + try { + List> listenersList = new ArrayList>(); + + for (String listenerClassName : listenerClassNames) { + listenersList.add((ModelListener)InstanceFactory.newInstance( + getClassLoader(), listenerClassName)); + } + + listeners = listenersList.toArray(new ModelListener[listenersList.size()]); + } + catch (Exception e) { + _log.error(e); + } + } + } + + public void destroy() { + EntityCacheUtil.removeCache(EmailTemplateAttachmentImpl.class.getName()); + FinderCacheUtil.removeCache(FINDER_CLASS_NAME_ENTITY); + FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); + FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); + } + + private static final String _SQL_SELECT_EMAILTEMPLATEATTACHMENT = "SELECT emailTemplateAttachment FROM EmailTemplateAttachment emailTemplateAttachment"; + private static final String _SQL_SELECT_EMAILTEMPLATEATTACHMENT_WHERE = "SELECT emailTemplateAttachment FROM EmailTemplateAttachment emailTemplateAttachment WHERE "; + private static final String _SQL_COUNT_EMAILTEMPLATEATTACHMENT = "SELECT COUNT(emailTemplateAttachment) FROM EmailTemplateAttachment emailTemplateAttachment"; + private static final String _SQL_COUNT_EMAILTEMPLATEATTACHMENT_WHERE = "SELECT COUNT(emailTemplateAttachment) FROM EmailTemplateAttachment emailTemplateAttachment WHERE "; + private static final String _ORDER_BY_ENTITY_ALIAS = "emailTemplateAttachment."; + private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No EmailTemplateAttachment exists with the primary key "; + private static final String _NO_SUCH_ENTITY_WITH_KEY = "No EmailTemplateAttachment exists with the key {"; + private static final boolean _HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE = GetterUtil.getBoolean(PropsUtil.get( + PropsKeys.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE)); + private static Log _log = LogFactoryUtil.getLog(EmailTemplateAttachmentPersistenceImpl.class); + private static EmailTemplateAttachment _nullEmailTemplateAttachment = new EmailTemplateAttachmentImpl() { + @Override + public Object clone() { + return this; + } + + @Override + public CacheModel toCacheModel() { + return _nullEmailTemplateAttachmentCacheModel; + } + }; + + private static CacheModel _nullEmailTemplateAttachmentCacheModel = + new CacheModel() { + @Override + public EmailTemplateAttachment toEntityModel() { + return _nullEmailTemplateAttachment; + } + }; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/util/MailEngine.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/util/MailEngine.java index 7f750744..c6594938 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/util/MailEngine.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/util/MailEngine.java @@ -370,6 +370,8 @@ public class MailEngine { if (smtpAuth && Validator.isNotNull(user) && Validator.isNotNull(password)) { String protocol = GetterUtil.getString(session.getProperty("mail.transport.protocol"), Account.PROTOCOL_SMTP); + _log.info("Protocol: " + protocol + ", connect(" + smtpHost + ", " + smtpPort + ", " + user + ", " + + password + ")"); Transport transport = session.getTransport(protocol); transport.connect(smtpHost, smtpPort, user, password); Address[] addresses = null; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/util/MailManagerUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/util/MailManagerUtil.java index 196e668b..c83e1081 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/util/MailManagerUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/util/MailManagerUtil.java @@ -1,16 +1,9 @@ package it.tref.liferay.portos.mailmanager.util; -import it.tref.liferay.portos.mailmanager.model.Email; -import it.tref.liferay.portos.mailmanager.model.EmailTemplate; -import it.tref.liferay.portos.mailmanager.service.EmailLocalServiceUtil; -import it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalServiceUtil; -import it.tref.liferay.portos.mailmanager.shared.util.MailManagerConstants; -import it.tref.liferay.portos.mailmanager.shared.util.MailUtil; - -import java.util.List; - import com.liferay.mail.model.FileAttachment; import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.mail.MailMessage; import com.liferay.portal.kernel.mail.SMTPAccount; import com.liferay.portal.kernel.util.StringPool; @@ -20,43 +13,50 @@ import com.liferay.portal.model.Company; import com.liferay.portal.service.CompanyLocalServiceUtil; import com.liferay.portal.service.ServiceContext; +import it.tref.liferay.portos.mailmanager.model.Email; +import it.tref.liferay.portos.mailmanager.model.EmailTemplate; +import it.tref.liferay.portos.mailmanager.service.EmailLocalServiceUtil; +import it.tref.liferay.portos.mailmanager.service.EmailTemplateLocalServiceUtil; +import it.tref.liferay.portos.mailmanager.shared.util.MailManagerConstants; +import it.tref.liferay.portos.mailmanager.shared.util.MailUtil; + +import java.util.List; + public class MailManagerUtil { public static Email addEmailByTemplate(String className, long classPK, long emailTemplateId, JSONObject templateParamJSON, List fileAttachments, ServiceContext serviceContext) throws Exception { - - return addEmailByTemplate(className, classPK, emailTemplateId, templateParamJSON, fileAttachments, false, - serviceContext); + return addEmailByTemplate(className, classPK, emailTemplateId, templateParamJSON, fileAttachments, + false, serviceContext); } public static Email addEmailByTemplate(String className, long classPK, long emailTemplateId, JSONObject templateParamJSON, ServiceContext serviceContext) throws Exception { - - return addEmailByTemplate(className, classPK, emailTemplateId, templateParamJSON, null, false, serviceContext); + return addEmailByTemplate(className, classPK, emailTemplateId, templateParamJSON, null, false, + serviceContext); } public static Email addEmailByTemplate(String className, long classPK, long emailTemplateId, JSONObject templateParamJSON, List fileAttachments, boolean sendSync, ServiceContext serviceContext) throws Exception { - EmailTemplate emailTemplate = EmailTemplateLocalServiceUtil.getEmailTemplate(emailTemplateId); - return addEmailByTemplate(className, classPK, emailTemplate, templateParamJSON, fileAttachments, sendSync, - serviceContext); + return addEmailByTemplate(className, classPK, emailTemplate, templateParamJSON, fileAttachments, + sendSync, serviceContext); } public static Email addEmailByTemplate(String className, long classPK, String emailTemplateName, JSONObject templateParamJSON, List fileAttachments, ServiceContext serviceContext) throws Exception { - return addEmailByTemplate(className, classPK, emailTemplateName, templateParamJSON, fileAttachments, false, - serviceContext); + return addEmailByTemplate(className, classPK, emailTemplateName, templateParamJSON, fileAttachments, + false, serviceContext); } public static Email addEmailByTemplate(String className, long classPK, String emailTemplateName, JSONObject templateParamJSON, ServiceContext serviceContext) throws Exception { - - return addEmailByTemplate(className, classPK, emailTemplateName, templateParamJSON, null, false, serviceContext); + return addEmailByTemplate(className, classPK, emailTemplateName, templateParamJSON, null, false, + serviceContext); } public static Email addEmailByTemplate(String className, long classPK, String emailTemplateName, @@ -65,13 +65,15 @@ public class MailManagerUtil { EmailTemplate emailTemplate = EmailTemplateLocalServiceUtil.fetchByC_GroupId_Name( serviceContext.getCompanyId(), serviceContext.getScopeGroupId(), emailTemplateName); + if (Validator.isNull(emailTemplate)) { Company company = CompanyLocalServiceUtil.getCompany(serviceContext.getCompanyId()); emailTemplate = EmailTemplateLocalServiceUtil.findByC_GroupId_Name(serviceContext.getCompanyId(), company.getGroupId(), emailTemplateName); } - return addEmailByTemplate(className, classPK, emailTemplate, templateParamJSON, fileAttachments, sendSync, - serviceContext); + + return addEmailByTemplate(className, classPK, emailTemplate, templateParamJSON, fileAttachments, + sendSync, serviceContext); } public static Email addEmailByTemplate(String className, long classPK, EmailTemplate emailTemplate, @@ -82,6 +84,7 @@ public class MailManagerUtil { templateParamJSON.getJSONObject(MailManagerConstants.TEMPLATE_PARAMETER_VARIABLES_KEY)); String body = VelocityUtil.evaluate(emailTemplate.getBody(), templateParamJSON.getJSONObject(MailManagerConstants.TEMPLATE_PARAMETER_VARIABLES_KEY)); + String to = templateParamJSON.getString(MailManagerConstants.TEMPLATE_PARAMETER_TO_KEY); if (Validator.isNull(to)) { to = emailTemplate.getTo(); @@ -94,15 +97,16 @@ public class MailManagerUtil { if (Validator.isNull(ccn)) { ccn = emailTemplate.getCcn(); } + return EmailLocalServiceUtil.addEmail(className, classPK, emailTemplate.getFrom(), StringUtil.split(to, StringPool.COMMA), StringUtil.split(cc, StringPool.COMMA), StringUtil.split(ccn, StringPool.COMMA), subject, body, true, fileAttachments, sendSync, emailTemplate.getTemplateName(), serviceContext); - } - public static Email addEmail(String className, long classPK, MailMessage mailMessage, ServiceContext serviceContext) - throws Exception { + } + public static Email addEmail(String className, long classPK, MailMessage mailMessage, + ServiceContext serviceContext) throws Exception { return addEmail(className, classPK, mailMessage, false, serviceContext); } @@ -114,28 +118,37 @@ public class MailManagerUtil { String[] cc = MailUtil.fromInternetAddresses(mailMessage.getCC()); String[] bcc = MailUtil.fromInternetAddresses(mailMessage.getBCC()); String[] bulkAddresses = MailUtil.fromInternetAddresses(mailMessage.getBulkAddresses()); + String subject = mailMessage.getSubject(); String body = mailMessage.getBody(); + boolean htmlFormat = mailMessage.getHTMLFormat(); String[] replyTo = MailUtil.fromInternetAddresses(mailMessage.getReplyTo()); String messageId = mailMessage.getMessageId(); String inReplyTo = mailMessage.getInReplyTo(); + List fileAttachments = mailMessage.getFileAttachments(); + SMTPAccount smtpAccount = mailMessage.getSMTPAccount(); + String smtpHost = null; int smtpPort = 0; boolean smtpSecure = false; String smtpUsername = null; String smtpPassword = null; + if (smtpAccount != null) { + smtpHost = smtpAccount.getHost(); smtpPort = smtpAccount.getPort(); smtpSecure = smtpAccount.isSecure(); smtpUsername = smtpAccount.getUser(); smtpPassword = smtpAccount.getPassword(); } - return EmailLocalServiceUtil.addEmail(className, classPK, from, to, cc, bcc, bulkAddresses, subject, body, - htmlFormat, replyTo, messageId, inReplyTo, smtpHost, smtpPort, smtpSecure, smtpUsername, smtpPassword, - fileAttachments, sendSync, null, serviceContext); + + return EmailLocalServiceUtil.addEmail(className, classPK, from, to, cc, bcc, bulkAddresses, subject, + body, htmlFormat, replyTo, messageId, inReplyTo, smtpHost, smtpPort, smtpSecure, + smtpUsername, smtpPassword, fileAttachments, sendSync, null, serviceContext); } + } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties index 6dc4045d..541bdb74 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_Mail - build.number=90 - build.date=1663310360846 + build.number=91 + build.date=1762446310836 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/tld/aui.tld b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/tld/aui.tld index a6c7ee04..1eeac884 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/tld/aui.tld +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/tld/aui.tld @@ -1,10 +1,12 @@ + aui:.]]> 1.0 aui http://alloy.liferay.com/tld/aui + button-item com.liferay.taglib.aui.ButtonItemTag JSP @@ -884,64 +886,75 @@ true + a com.liferay.taglib.aui.ATag JSP + <p> tag could be used for something other than a paragraph.]]> ariaRole false true java.lang.String + cssClass false true java.lang.String + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> data false true java.util.Map + href true true java.lang.String + id false true java.lang.String + label false true java.lang.String + lang false true java.lang.String + onClick false true java.lang.String + self. Possible values are blank, self, parent, top, and a unique frame's name.]]> target false true java.lang.String + title false true @@ -954,66 +967,77 @@ com.liferay.taglib.aui.ButtonTag JSP + primary attribute.]]> cssClass false true java.lang.String + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> data false true java.lang.Object + false.]]> disabled false true boolean + href false true java.lang.String + here.]]> icon false true java.lang.String + left.]]> iconAlign false true java.lang.String + name false true java.lang.String + onClick false true java.lang.String + type attribute is set to submit, this value is set to true. For all other types, the value is set to false by default.]]> primary false true java.lang.Object + button, submit, cancel and reset. The default value is button.]]> type false true java.lang.String + href location when a user clicks the button. The default value is false.]]> useDialog false true @@ -1028,16 +1052,19 @@ true + <div> tag to wrap <aui:button> components and offer additional styling.]]> button-row com.liferay.taglib.aui.ButtonRowTag JSP + cssClass false true java.lang.String + id false true @@ -1046,16 +1073,19 @@ true + <aui:row> component.]]> col com.liferay.taglib.aui.ColTag JSP + cssClass false true java.lang.String + id false true @@ -1074,12 +1104,14 @@ int + 12. For example, a span of 4 would result in a column width 4/12 (or 1/3) of the total width of the containing row.]]> span false true int + span attribute. The width is then converted to a span expressed as ((width/100) x 12), rounded to the nearest whole number. For example, a width of 33 would be converted to 3.96, which would be rounded up to a span value of 4.]]> width false true @@ -1088,34 +1120,40 @@ true + aui:col.]]> column com.liferay.taglib.aui.ColumnTag JSP + 20 would be 20%. The default value is 0.]]> columnWidth false true int + cssClass false true java.lang.String + false.]]> first false true boolean + id false true java.lang.String + false.]]> last false true @@ -1190,22 +1228,26 @@ true + <div> tag to wrap <aui:row> components and offer additional styling.]]> container com.liferay.taglib.aui.ContainerTag JSP + cssClass false true java.lang.String + true.]]> fluid false true boolean + id false true @@ -1214,64 +1256,75 @@ true + <div> tag to wrap form fields and offer additional styling.]]> field-wrapper com.liferay.taglib.aui.FieldWrapperTag JSP + cssClass false true java.lang.String + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> data false true java.lang.Object + false.]]> first false true boolean + helpMessage false true java.lang.String + false.]]> inlineField false true boolean + right and left.]]> inlineLabel false true java.lang.String + label false true java.lang.String + false.]]> last false true boolean + name false true java.lang.String + required false true @@ -1279,34 +1332,40 @@ + <div> tag to group related form elements and offer additional styling.]]> fieldset com.liferay.taglib.aui.FieldsetTag JSP + column false true boolean + cssClass false true java.lang.String + helpMessage false true java.lang.String + id false true java.lang.String + label false true @@ -1315,58 +1374,68 @@ true + form com.liferay.taglib.aui.FormTag JSP + action false true java.lang.String + cssClass false true java.lang.String + true.]]> escapeXml false true boolean + false.]]> inlineLabels false true boolean + post. Possible values are get and post.]]> method false true java.lang.String + fm.]]> name false true java.lang.String + onSubmit false true java.lang.String + portletNamespace false true java.lang.String + true.]]> useNamespace false true @@ -1375,46 +1444,54 @@ true + icon com.liferay.taglib.aui.IconTag JSP + image attribute.]]> cssClass false true java.lang.String + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> data false true java.util.Map + id false true java.lang.String + icon-edit CSS class by setting the value edit. If an icon image is referenced for cssClass and image, both icons are shown in the component.]]> image false true java.lang.String + label false true java.lang.String + self. Possible values are blank, self, parent, top, and a unique frame's name.]]> target false true java.lang.String + url false true @@ -1423,52 +1500,61 @@ true + input com.liferay.taglib.aui.InputTag JSP + autoFocus false true boolean + autoSize false true boolean + bean false true java.lang.Object + false.]]> changesContext false true boolean + type is radio or checkbox.]]> checked false true boolean + 0.]]> classPK false true long + cssClass false true java.lang.String + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> data false true @@ -1481,12 +1567,14 @@ java.lang.String + defaultLanguageId false true java.lang.String + false.]]> disabled false true @@ -1499,60 +1587,70 @@ java.lang.String + field of the component.]]> fieldParam false true java.lang.String + first false true boolean + formName false true java.lang.String + helpMessage false true java.lang.String + input-group-addon.]]> helpTextCssClass false true java.lang.String + id false true java.lang.String + false.]]> ignoreRequestValue false true boolean + false.]]> inlineField false true boolean + right and left.]]> inlineLabel false true java.lang.String + name attribute's value.]]> label false true @@ -1565,30 +1663,35 @@ java.lang.String + last false true boolean + false.]]> localized false true boolean + type is number or range. Note that the max value is inclusive if the input's type is range.]]> max false true java.lang.Object + model false true java.lang.Class + type is number or range. Note that the min value is inclusive if the input's type is range.]]> min false true @@ -1601,84 +1704,98 @@ boolean + name true true java.lang.String + onChange false true java.lang.String + onClick false true java.lang.String + placeholder false true java.lang.String + prefix false true java.lang.String + required false true boolean + textarea.]]> resizable false true boolean + showRequiredLabel false true boolean + suffix false true java.lang.String + title false true java.lang.String + text, hidden, assetCategories, assetTags, textarea, timeZone, password, checkbox, radio, submit, button, color, email, number, range, resource, url, and an empty value. If an empty value or no value is set, the input's type is obtained automatically from the input component's bean.]]> type false true java.lang.String + true.]]> useNamespace false true boolean + value false true java.lang.Object + div that wraps the input component.]]> wrapperCssClass false true @@ -1687,10 +1804,12 @@ true + layout com.liferay.taglib.aui.LayoutTag JSP + cssClass false true @@ -1699,22 +1818,26 @@ true + model-context com.liferay.taglib.aui.ModelContextTag JSP + bean false true java.lang.Object + defaultLanguageId false true java.lang.String + model false true @@ -1722,16 +1845,19 @@ + <nav:item> components for an <aui:nav-bar> component.]]> nav com.liferay.taglib.aui.NavTag JSP + ariaLabel false true java.lang.String + <p> tag could be used for something other than a paragraph.]]> ariaRole false true @@ -1744,6 +1870,7 @@ boolean + cssClass false true @@ -1756,12 +1883,14 @@ java.lang.String + id false true java.lang.String + true.]]> useNamespace false true @@ -1770,16 +1899,19 @@ true + nav-bar com.liferay.taglib.aui.NavBarTag JSP + cssClass false true java.lang.String + id false true @@ -1788,16 +1920,19 @@ true + <aui:nav-bar> component.]]> nav-bar-search com.liferay.taglib.aui.NavBarSearchTag JSP + cssClass false true java.lang.String + id false true @@ -1810,6 +1945,7 @@ java.lang.String + searchContainer false true @@ -1818,82 +1954,102 @@ true + <aui:nav> component.]]> nav-item com.liferay.taglib.aui.NavItemTag JSP + href attribute.]]> anchorCssClass false true java.lang.String + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> anchorData false true java.lang.Object + href attribute.]]> anchorId false true java.lang.String + ariaLabel false true java.lang.String + <p> tag could be used for something other than a paragraph.]]> ariaRole false true java.lang.String + cssClass false true java.lang.String + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> data false true java.lang.Object + false.]]> dropdown false true boolean + href false true java.lang.Object + iconCssClass false true java.lang.String + id false true java.lang.String + label false true java.lang.String + localizeLabel + false + true + boolean + + + false.]]> selected false true @@ -1906,6 +2062,7 @@ java.lang.String + title false true @@ -1918,12 +2075,14 @@ boolean + href location when a user clicks the navigation item. The default value is false.]]> useDialog false true boolean + drop-down-menu class. The default value is true.]]> wrapDropDownMenu false true @@ -1932,40 +2091,47 @@ true + <aui:select> component.]]> option com.liferay.taglib.aui.OptionTag JSP + cssClass false true java.lang.String + HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> data false true java.util.Map + false.]]> disabled false true boolean + label false true java.lang.Object + false.]]> selected false true boolean + text-align:right;.]]> style false true @@ -1978,6 +2144,7 @@ boolean + label attribute.]]> value false true @@ -2015,22 +2182,26 @@ + <aui:col> components.]]> row com.liferay.taglib.aui.RowTag JSP + cssClass false true java.lang.String + row-fluid CSS class to the row. The default value is true. If set to false, the row CSS class is assigned.]]> fluid false true boolean + id false true @@ -2039,16 +2210,19 @@ true + script com.liferay.taglib.aui.ScriptTag JSP + position false true java.lang.String + use false true @@ -2056,52 +2230,61 @@ + <aui:option> components.]]> select com.liferay.taglib.aui.SelectTag JSP + bean false true java.lang.Object + false.]]> changesContext false true boolean + cssClass false true java.lang.String + HashMap<"class-name", "foo"> would render as the attribute data-class-name = "foo";.]]> data false true java.util.Map + false.]]> disabled false true boolean + false.]]> first false true boolean + helpMessage false true java.lang.String + id false true @@ -2114,30 +2297,35 @@ boolean + false.]]> inlineField false true boolean + right and left.]]> inlineLabel false true java.lang.String + label false true java.lang.String + false.]]> last false true boolean + ListTypeImpl.java.]]> listType false true @@ -2150,66 +2338,77 @@ java.lang.String + true, the select field expands to allow for multiple selections. The default value is false.]]> multiple false true boolean + label attribute and takes the place of the label.]]> name true true java.lang.String + onChange false true java.lang.String + onClick false true java.lang.String + prefix false true java.lang.String + false.]]> required false true boolean + false.]]> showEmptyOption false true boolean + required attribute is set to true. The default value is false.]]> showRequiredLabel false true boolean + suffix false true java.lang.String + title false true java.lang.String + true.]]> useNamespace false true @@ -2218,21 +2417,25 @@ true + spacer com.liferay.taglib.aui.SpacerTag JSP + translation-manager com.liferay.taglib.aui.TranslationManagerTag JSP + availableLocales false true java.util.Locale[] + defaultLanguageId false true @@ -2245,18 +2448,21 @@ java.lang.String + id false true java.lang.String + true. If this is set to false, the translation manager will not work entirely.]]> initialize false true boolean + false.]]> readOnly false true @@ -2264,16 +2470,26 @@ + validator com.liferay.taglib.aui.ValidatorTagImpl JSP + true.]]> + customValidatorRequired + false + true + boolean + + + errorMessage false true java.lang.String + acceptFiles, alpha, alphanum, date, digits, email, equalTo, iri, max, maxLength, min, minLength, number, required, and url.]]> name true true @@ -2281,58 +2497,68 @@ + workflow-status com.liferay.taglib.aui.WorkflowStatusTag JSP + bean false true java.lang.Object + helpMessage false true java.lang.String + id false true java.lang.String + model false true java.lang.Class + true.]]> showIcon false true boolean + true.]]> showLabel false true boolean + 0 (Approved), 1 (Pending), 2 (Draft), 3 (Expired), 4 (Denied), 5 (Inactive), 6 (Incomplete), 7 (Scheduled), and 8 (In-Trash). Any other value defaults to status (Any).]]> status false true java.lang.Integer + statusMessage false true java.lang.String + version false true diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/web.xml b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/web.xml index 1aa8cdb8..d8b6a17d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/web.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/web.xml @@ -1,3 +1,145 @@ - - + + + + portos-mail-manager-portlet + + Invoker Filter - ERROR + com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter + + dispatcher + ERROR + + + + Invoker Filter - FORWARD + com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter + + dispatcher + FORWARD + + + + Invoker Filter - INCLUDE + com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter + + dispatcher + INCLUDE + + + + Invoker Filter - REQUEST + com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter + + dispatcher + REQUEST + + + + Invoker Filter - ERROR + /* + ERROR + + + Invoker Filter - FORWARD + /* + FORWARD + + + Invoker Filter - INCLUDE + /* + INCLUDE + + + Invoker Filter - REQUEST + /* + REQUEST + + + com.liferay.portal.kernel.servlet.PluginContextListener + + + com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener + + + 1 Servlet + com.liferay.portal.kernel.servlet.PortletServlet + + portlet-class + it.tref.liferay.portos.mailmanager.portlet.EmailPortlet + + 1 + + + 2 Servlet + com.liferay.portal.kernel.servlet.PortletServlet + + portlet-class + it.tref.liferay.portos.mailmanager.portlet.EmailTemplatesPortlet + + 1 + + + 3 Servlet + com.liferay.portal.kernel.servlet.PortletServlet + + portlet-class + it.tref.liferay.portos.mailmanager.portlet.EmailTemplatesPortlet + + 1 + + + Dynamic Resource Servlet + com.liferay.portal.kernel.servlet.PortalClassLoaderServlet + + servlet-class + com.liferay.portal.webserver.DynamicResourceServlet + + 1 + + + 1 Servlet + /1/* + + + 2 Servlet + /2/* + + + 3 Servlet + /3/* + + + Dynamic Resource Servlet + /sprite/* + + + + http://liferay.com/tld/aui + /WEB-INF/tld/aui.tld + + + http://java.sun.com/portlet_2_0 + /WEB-INF/tld/liferay-portlet.tld + + + http://liferay.com/tld/portlet + /WEB-INF/tld/liferay-portlet-ext.tld + + + http://liferay.com/tld/security + /WEB-INF/tld/liferay-security.tld + + + http://liferay.com/tld/theme + /WEB-INF/tld/liferay-theme.tld + + + http://liferay.com/tld/ui + /WEB-INF/tld/liferay-ui.tld + + + http://liferay.com/tld/util + /WEB-INF/tld/liferay-util.tld + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp index fdafd350..51c865d9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/init.jsp @@ -1,4 +1,5 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> + <%@page import="com.liferay.portal.util.PortalUtil"%> <%@page import="com.liferay.portlet.PortletURLUtil"%> <%@page import="javax.portlet.PortletURL"%> @@ -10,23 +11,36 @@ <%@page import="java.util.List"%> <%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.HtmlUtil"%> + <%@page import="com.liferay.portal.kernel.util.StringPool"%> -<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> -<%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> -<%@taglib uri="http://liferay.com/tld/aui" prefix="aui" %> -<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %> -<%@taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %> -<%@taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %> -<%@taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> -<%@taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %> -<%@taglib uri="http://liferay.com/tld/ddm" prefix="liferay-ddm" %> + +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + +<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> + +<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %> +<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %> +<%@ taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %> +<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %> +<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> +<%@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %> +<%@ taglib uri="http://liferay.com/tld/ddm" prefix="liferay-ddm" %> + <%@page import="it.tref.liferay.portos.mailmanager.shared.util.MailManagerConstants"%> + +<%@ page contentType="text/html; charset=UTF-8" %> + <%@page import="com.liferay.portal.kernel.util.GetterUtil"%> + + <% PortletMode portletMode = liferayPortletRequest.getPortletMode(); WindowState windowState = liferayPortletRequest.getWindowState(); + PortletURL currentURLObj = PortletURLUtil.getCurrent(liferayPortletRequest, liferayPortletResponse); + String currentURL = currentURLObj.toString(); -%> + +%> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp index 639e1b2f..89ef8581 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/edit.jsp @@ -1,11 +1,17 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@include file="/html/mail_manager/init.jsp"%> +<%@include file="/html/mail_manager/init.jsp" %> + <% -final String EDITOR_WYSIWYG_IMPL_KEY = "editor.wysiwyg.mail-manager-portlet.docroot.html.mail_manager.edit.jsp"; -long emailId = ParamUtil.getLong(request, "emailId"); -Email email = EmailLocalServiceUtil.getEmail(emailId); -List emailAttachments = EmailAttachmentLocalServiceUtil.findByEmailId(emailId); + final String EDITOR_WYSIWYG_IMPL_KEY = "editor.wysiwyg.mail-manager-portlet.docroot.html.mail_manager.edit.jsp"; + + long emailId = ParamUtil.getLong(request, "emailId"); + + Email email = EmailLocalServiceUtil.getEmail(emailId); + + List emailAttachments = EmailAttachmentLocalServiceUtil.findByEmailId(emailId); + %> + @@ -14,49 +20,76 @@ List emailAttachments = EmailAttachmentLocalServiceUtil.findByE + - + + + - - - - + + + + + + + + + + - + + + function initEditor() { return "<%= UnicodeFormatter.toString(email.getBody()) %>"; } +
    - <% - for(EmailAttachment attachment : emailAttachments){ - %> -
  • <%= attachment.getFileEntry().getDescription() %> - <% - } - %> + <% for(EmailAttachment attachment : emailAttachments){ %> +
  • <%=attachment.getFileEntry().getDescription() %> + <% } %>
+ - + +
+ + -Liferay.provide( window, 'save', function() { - var A = new AUI(); - var body = window.editor.getHTML(); - document.fm.body.value = body; - submitForm(document.fm); -}); + + Liferay.provide( + window, + 'save', + function() { + var A = new AUI(); + + var body = window.editor.getHTML(); + + document.fm.body.value = body; + + submitForm(document.fm); + + } + ); + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp index dda35504..43de79f2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_action.jsp @@ -1,29 +1,53 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/html/mail_manager/init.jsp" %> + <% SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); + String redirect = searchContainer.getIteratorURL().toString(); + ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); + Email entry = (Email) row.getObject(); %> - + + + + + - + + + - + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp index 46334425..08210e78 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/email_history_popup_button.jsp @@ -1,26 +1,34 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/html/mail_manager/init.jsp" %> - - <% - String cssClass = ParamUtil.getString(request, "cssClass"); - String buttonValue = ParamUtil.getString(request, "buttonValue","email-history-popup-btn"); - long classNameId = ParamUtil.getLong(request, "classNameId"); - long classPK = ParamUtil.getLong(request, "classPK"); - String templateName = ParamUtil.getString(request, "templateName"); + + + + <% + String cssClass = ParamUtil.getString(request, "cssClass"); + String buttonValue = ParamUtil.getString(request, "buttonValue","email-history-popup-btn"); + + long classNameId = ParamUtil.getLong(request, "classNameId"); + long classPK = ParamUtil.getLong(request, "classPK"); + String templateName = ParamUtil.getString(request, "templateName"); %> - + + + - - + + - - + + - - + + - - + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/init.jsp index 08f67ce2..e1014604 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/init.jsp @@ -1,5 +1,6 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/html/init.jsp" %> + <%@page import="com.liferay.portal.kernel.util.TextFormatter"%> <%@page import="com.liferay.portal.kernel.repository.model.FileVersion"%> <%@page import="com.liferay.portal.kernel.util.StringBundler"%> @@ -11,6 +12,7 @@ <%@page import="com.liferay.portal.kernel.util.UnicodeFormatter"%> <%@page import="it.tref.liferay.portos.mailmanager.model.Email"%> <%@page import="it.tref.liferay.portos.mailmanager.service.EmailAttachmentLocalServiceUtil"%> + <%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailToException"%> <%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailBodyException"%> <%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailSubjectException"%> @@ -20,10 +22,11 @@ <%@page import="it.tref.liferay.portos.mailmanager.EmailFromException"%> <%@page import="it.tref.liferay.portos.mailmanager.RequiredEmailFromException"%> <%@page import="com.sun.xml.internal.ws.api.message.Attachment"%> + <%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%> <%@page import="com.liferay.portal.kernel.util.WebKeys"%> <%@page import="com.liferay.portal.kernel.dao.search.ResultRow"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="it.tref.liferay.portos.mailmanager.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.mailmanager.permission.ActionKeys"%> -<%@page import="it.tref.liferay.portos.mailmanager.permission.EmailPermission"%> +<%@page import="it.tref.liferay.portos.mailmanager.permission.EmailPermission"%> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp index ce666fda..5a3f7523 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/html/mail_manager/view.jsp @@ -1,115 +1,165 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@include file="/html/mail_manager/init.jsp"%> +<%@include file="/html/mail_manager/init.jsp" %> + <% -long classNameId = ParamUtil.getLong(request, "classNameId"); -long classPK = ParamUtil.getLong(request, "classPK"); -String templateName = ParamUtil.getString(request, "templateName"); -long companyId = company.getCompanyId(); + long classNameId = ParamUtil.getLong(request, "classNameId"); + long classPK = ParamUtil.getLong(request, "classPK"); + String templateName = ParamUtil.getString(request, "templateName"); + + long companyId = company.getCompanyId(); + %> - - <% - List results = null; - int count = 0; - if (Validator.isNotNull(classNameId) && Validator.isNotNull(classPK)) { - results = EmailLocalServiceUtil.findByC_G_C_C(companyId, scopeGroupId, classNameId, classPK, - searchContainer.getStart(), searchContainer.getEnd()); - count = EmailLocalServiceUtil.countByC_G_C_C(companyId, scopeGroupId, classNameId, classPK); - } else if (Validator.isNotNull(templateName)) { - results = EmailLocalServiceUtil.findByC_G_T(companyId, scopeGroupId, templateName, searchContainer.getStart(), - searchContainer.getEnd()); - count = EmailLocalServiceUtil.countByC_G_T(companyId, scopeGroupId, templateName); - } else { - results = EmailLocalServiceUtil.findByCompany(companyId, searchContainer.getStart(), searchContainer.getEnd()); - count = EmailLocalServiceUtil.countByCompany(companyId); - } - searchContainer.setResults(results); - searchContainer.setTotal(count); + + + + <% + List results = null; + int count = 0; + + if(Validator.isNotNull(classNameId) && Validator.isNotNull(classPK)){ + results = EmailLocalServiceUtil.findByC_G_C_C(companyId, scopeGroupId, classNameId, classPK, searchContainer.getStart(), searchContainer.getEnd()); + count = EmailLocalServiceUtil.countByC_G_C_C(companyId, scopeGroupId, classNameId, classPK); + }else if(Validator.isNotNull(templateName)){ + results = EmailLocalServiceUtil.findByC_G_T(companyId, scopeGroupId, templateName, searchContainer.getStart(), searchContainer.getEnd()); + count = EmailLocalServiceUtil.countByC_G_T(companyId, scopeGroupId, templateName); + }else{ + results = EmailLocalServiceUtil.findByCompany(companyId, searchContainer.getStart(), searchContainer.getEnd()); + count = EmailLocalServiceUtil.countByCompany(companyId); + } + + searchContainer.setResults(results); + searchContainer.setTotal(count); %> - + + + + + <% String[] to = email.getToArray(); %> - + + <%= to.length %> + + + A.one('#toCount<%= email.getEmailId() %>').on('click', function(event) { - var modal = new A.Modal({ - modal: true, - centered: true, - visible: true, - bodyContent: '<%= getContent(to) %>', - headerContent: '
', - render: '#modal', - width: 300, - }).render(); + + var modal = new A.Modal( + { + modal: true, + centered: true, + visible: true, + + bodyContent: '<%= getContent(to) %>', + headerContent: '
', + render: '#modal', + width: 300 + } + ).render(); }); +
+
+ + <% String[] cc = email.getCcArray(); %> - + + <%= cc.length %> + + + A.one('#ccCount<%= email.getEmailId() %>').on('click', function(event) { - var modal = new A.Modal({ - modal: true, - centered: true, - visible: true, - bodyContent: '<%= getContent(cc) %>', - headerContent: '
', - render: '#modal', - width: 300, - }).render(); + + var modal = new A.Modal( + { + modal: true, + centered: true, + visible: true, + bodyContent: '<%= getContent(cc) %>', + headerContent: '
', + render: '#modal', + width: 300 + } + ).render(); }); +
+
+ + <% String[] bcc = email.getBccArray(); %> - + + <%= bcc.length %> + + + A.one('#bccCount<%= email.getEmailId() %>').on('click', function(event) { - var modal = new A.Modal({ - modal: true, - centered: true, - visible: true, - bodyContent: '<%= getContent(bcc) %>', - headerContent: '
', - render: '#modal', - width: 300, - }).render(); + + var modal = new A.Modal( + { + modal: true, + centered: true, + visible: true, + bodyContent: '<%= getContent(bcc) %>', + headerContent: '
', + render: '#modal', + width: 300 + } + ).render(); }); +
+
+ <%= StringUtil.shorten(email.getSubject(), 50) %> + - <%= StringUtil.shorten(HtmlUtil.extractText(email.getBody()), 50)%> + <%= StringUtil.shorten(HtmlUtil.extractText(email.getBody()), 50) %> + + @@ -117,31 +167,45 @@ long companyId = company.getCompanyId(); + - + + + + + <% List emailAttachments = email.getEmailAttachments(); %> +
- + <%= emailAttachments.size() %>
+ +
- <% - for (EmailAttachment emailAttachment : emailAttachments) { + + <% for (EmailAttachment emailAttachment : emailAttachments) { FileEntry fileEntry = emailAttachment.getFileEntry(); FileVersion fileVersion = fileEntry.getFileVersion(); %> + <%= fileEntry.getTitle() %> @@ -153,46 +217,72 @@ long companyId = company.getCompanyId(); <%= TextFormatter.formatStorageSize(fileVersion.getSize(), locale) %> - + - <% - } - %> + <% } %> +
+ + A.one('#attachmentCount<%= email.getEmailId() %>').on('click', function(event) { + var attachments = A.one('#attachments<%= email.getEmailId() %>'); attachments.show(); - var modal = new A.Modal({ - modal: true, - centered: true, - visible: true, - bodyContent: attachments, - headerContent: '
', - render: '#modal', - width: 550, - }).render(); + + var modal = new A.Modal( + { + modal: true, + centered: true, + visible: true, + bodyContent: attachments, + headerContent: '
', + render: '#modal', + width: 550 + } + ).render(); }); +
+
+
+ + +
- + + +
+
+ <%! + private String getContent(String[] addresses) { - StringBundler sb = new StringBundler(); - for (String address : addresses) { - sb.append("
") - .append(address) - .append("
"); - } - return sb.toString(); + + StringBundler sb = new StringBundler(); + + for (String address : addresses) { + sb.append("
"); + sb.append("
"); + sb.append(address); + sb.append("
"); + sb.append("
"); + } + + return sb.toString(); } + %> \ No newline at end of file