Sfoglia il codice sorgente

Asseverazione richiesta solo al collaudatore principale

master 21.10
Salvatore La Manna 3 anni fa
parent
commit
c23feecf05
  1. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java
  2. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java
  3. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java
  4. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java
  5. 86
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  6. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java
  7. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  8. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  9. 175
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp
  10. 35
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachment.java
  11. 301
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentClp.java
  12. 146
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentModel.java
  13. 111
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentSoap.java
  14. 278
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentWrapper.java
  15. 256
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalService.java
  16. 733
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceClp.java
  17. 313
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceUtil.java
  18. 320
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceWrapper.java
  19. 38
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentActionableDynamicQuery.java
  20. 140
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPK.java
  21. 362
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistence.java
  22. 526
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentUtil.java
  23. 50
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentBaseImpl.java
  24. 76
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentCacheModel.java
  25. 34
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentImpl.java
  26. 318
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentModelImpl.java
  27. 797
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceBaseImpl.java
  28. 266
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceClpInvoker.java
  29. 1491
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistenceImpl.java

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

@ -127,12 +127,10 @@ public class AzioniPraticheUtil {
} else if (StatoPraticaConstants.COLLAUDO_PARZIALE.equalsIgnoreCase(intPratica.getStatoPratica())) { } else if (StatoPraticaConstants.COLLAUDO_PARZIALE.equalsIgnoreCase(intPratica.getStatoPratica())) {
status = STATE_COLLAUDO_PARZIALE; status = STATE_COLLAUDO_PARZIALE;
} }
List<String> actionList = STATE_ACTIONS_MAP.get(status); List<String> actionList = STATE_ACTIONS_MAP.get(status);
if (actionList == null) { if (actionList == null) {
actionList = new ArrayList<>(); actionList = new ArrayList<>();
} }
if (!actionList.contains(action)) { if (!actionList.contains(action)) {
return false; return false;
} }

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

@ -165,16 +165,12 @@ public class DelegheUtil {
public static boolean hasDeleteDelega(long userId, long intPraticaId) throws PortalException, SystemException { public static boolean hasDeleteDelega(long userId, long intPraticaId) throws PortalException, SystemException {
// TODO completare e controllare return hasCreazioneDelega(userId, intPraticaId);
boolean controllo = hasCreazioneDelega(userId, intPraticaId);
return controllo;
} }
public static boolean hasAnnullaDelega(long userId, long intPraticaId) throws PortalException, SystemException { public static boolean hasAnnullaDelega(long userId, long intPraticaId) throws PortalException, SystemException {
// TODO completare e controllare return hasCreazioneDelega(userId, intPraticaId);
boolean controllo = hasCreazioneDelega(userId, intPraticaId);
return controllo;
} }
public static boolean hasDelegaCompilazioneDomanda(long userId, long dettPraticaId) throws PortalException, public static boolean hasDelegaCompilazioneDomanda(long userId, long dettPraticaId) throws PortalException,

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

@ -199,6 +199,7 @@ public class MailUtil {
} }
public static void invioNotificaGeologo(ParereGeologo parereGeologo, ServiceContext serviceContext) { public static void invioNotificaGeologo(ParereGeologo parereGeologo, ServiceContext serviceContext) {
_log.info("start invioNotificaGeologo parereGeologo=" + parereGeologo.getParereGeologoId()); _log.info("start invioNotificaGeologo parereGeologo=" + parereGeologo.getParereGeologoId());
try { try {
User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId()); User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId());

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java

@ -30,6 +30,7 @@ public class SchedulerWorkflow implements MessageListener {
if (lock.tryLock()) { if (lock.tryLock()) {
_log.info("Inizio elaborazione"); _log.info("Inizio elaborazione");
try { try {
SismicaUtil.integrazioniScadute();
for (Company company : CompanyLocalServiceUtil.getCompanies()) { for (Company company : CompanyLocalServiceUtil.getCompanies()) {
long companyId = company.getCompanyId(); long companyId = company.getCompanyId();
Role role = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR); Role role = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR);
@ -37,8 +38,8 @@ public class SchedulerWorkflow implements MessageListener {
PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user);
PermissionThreadLocal.setPermissionChecker(permissionChecker); PermissionThreadLocal.setPermissionChecker(permissionChecker);
SismicaUtil.riparaWorkflow(companyId, user.getUserId()); SismicaUtil.riparaWorkflow(companyId, user.getUserId());
SismicaUtil.integrazioniScadute();
} }
_log.info("Fine elaborazione");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }

86
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java

@ -1,7 +1,5 @@
/** /**
*
* @author Salvatore La Manna, Manifattura Web Group per Regione Siciliana * @author Salvatore La Manna, Manifattura Web Group per Regione Siciliana
*
*/ */
package it.mwg.sismica.bo.util; package it.mwg.sismica.bo.util;
@ -156,8 +154,7 @@ public class SismicaUtil {
} catch (ParseException e) { } catch (ParseException e) {
try { try {
date = new SimpleDateFormat("yyyy-MM-dd").parse(str); date = new SimpleDateFormat("yyyy-MM-dd").parse(str);
} catch (ParseException e1) { } catch (ParseException e1) {}
}
} }
return date; return date;
} }
@ -168,8 +165,7 @@ public class SismicaUtil {
try { try {
start = sdfGiornoDB.parse(sdfGiornoDB.format(start)); start = sdfGiornoDB.parse(sdfGiornoDB.format(start));
end = sdfGiornoDB.parse(sdfGiornoDB.format(end)); end = sdfGiornoDB.parse(sdfGiornoDB.format(end));
} catch (ParseException e) { } catch (ParseException e) {}
}
return Math.round((end.getTime() - start.getTime()) / 86400000.0); return Math.round((end.getTime() - start.getTime()) / 86400000.0);
} }
return null; return null;
@ -185,7 +181,8 @@ public class SismicaUtil {
final long nodeId = 21639; final long nodeId = 21639;
final String nodeName = "Esito"; final String nodeName = "Esito";
final String validCurrentNodeName = "signal_cittadino"; final String validCurrentNodeName = "signal_cittadino";
final String commento = "Pratica riassegnata automaticamente dal sistema per scadenza dei termini di integrazione"; final String commento = "Pratica riassegnata automaticamente dal sistema per scadenza dei termini di"
+ " integrazione";
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.HOUR, 0); calendar.set(Calendar.HOUR, 0);
calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.MINUTE, 0);
@ -298,6 +295,10 @@ public class SismicaUtil {
instanceToken.setCurrentKaleoNodeId(nodeId); instanceToken.setCurrentKaleoNodeId(nodeId);
instanceToken.setCurrentKaleoNodeName(nodeName); instanceToken.setCurrentKaleoNodeName(nodeName);
KaleoInstanceTokenLocalServiceUtil.updateKaleoInstanceToken(instanceToken); KaleoInstanceTokenLocalServiceUtil.updateKaleoInstanceToken(instanceToken);
if (pratica.getStatus() != WorkflowConstants.STATUS_PENDING) {
pratica.setStatus(WorkflowConstants.STATUS_PENDING);
IntPraticaLocalServiceUtil.updateIntPratica(pratica);
}
esitoLog(esito, "Riassegnato workflow instance " + instance.getKaleoInstanceId() + " per pratica " esitoLog(esito, "Riassegnato workflow instance " + instance.getKaleoInstanceId() + " per pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), istruttore " + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), istruttore "
+ tecnicoUser.getFullName()); + tecnicoUser.getFullName());
@ -470,8 +471,8 @@ public class SismicaUtil {
controlloPraticaId = 0L; controlloPraticaId = 0L;
break; break;
case StatoPraticaConstants.FINE_LAVORI: case StatoPraticaConstants.FINE_LAVORI:
List<FineLavori> fineLavori = FineLavoriLocalServiceUtil.findByIntPraticaId_Completata(intPraticaId, true, List<FineLavori> fineLavori = FineLavoriLocalServiceUtil.findByIntPraticaId_Completata(intPraticaId,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, true, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
OrderByComparatorFactoryUtil.create(FineLavoriImpl.TABLE_NAME, "dtProtocollo", true)); OrderByComparatorFactoryUtil.create(FineLavoriImpl.TABLE_NAME, "dtProtocollo", true));
FineLavori fineLavoro = null; FineLavori fineLavoro = null;
for (FineLavori el : fineLavori) { for (FineLavori el : fineLavori) {
@ -791,8 +792,7 @@ public class SismicaUtil {
controllo.setStatus(WorkflowConstants.STATUS_APPROVED); controllo.setStatus(WorkflowConstants.STATUS_APPROVED);
try { try {
ControlloPraticaLocalServiceUtil.updateControlloPratica(controllo); ControlloPraticaLocalServiceUtil.updateControlloPratica(controllo);
} catch (SystemException e) { } catch (SystemException e) {}
}
long fileEntryIdTemplate; long fileEntryIdTemplate;
try { try {
fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(
@ -812,8 +812,7 @@ public class SismicaUtil {
} }
pratica.setStatoPratica(StatoPraticaConstants.CONFORME); pratica.setStatoPratica(StatoPraticaConstants.CONFORME);
IntPraticaLocalServiceUtil.updateIntPratica(pratica); IntPraticaLocalServiceUtil.updateIntPratica(pratica);
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {}
}
} }
} }
} }
@ -824,8 +823,7 @@ public class SismicaUtil {
pratica.setStatoPratica(StatoPraticaConstants.CONFORME); pratica.setStatoPratica(StatoPraticaConstants.CONFORME);
try { try {
IntPraticaLocalServiceUtil.updateIntPratica(pratica); IntPraticaLocalServiceUtil.updateIntPratica(pratica);
} catch (SystemException e) { } catch (SystemException e) {}
}
} }
} }
} }
@ -911,8 +909,7 @@ public class SismicaUtil {
if (token.getClassName().equals(ControlloPratica.class.getName())) if (token.getClassName().equals(ControlloPratica.class.getName()))
tokens.add(token.getClassPK()); tokens.add(token.getClassPK());
} }
} catch (SystemException e) { } catch (SystemException e) {}
}
int start = 0; int start = 0;
List<IntPratica> pratiche = null; List<IntPratica> pratiche = null;
do { do {
@ -1030,8 +1027,7 @@ public class SismicaUtil {
try { try {
serviceContext.setScopeGroupId(TerritorioLocalServiceUtil.getTerritorio( serviceContext.setScopeGroupId(TerritorioLocalServiceUtil.getTerritorio(
intPratica.getTerritorioId()).getGroupId()); intPratica.getTerritorioId()).getGroupId());
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {}
}
serviceContext.setUserId(intPratica.getUserId()); serviceContext.setUserId(intPratica.getUserId());
} }
List<Avviso> avvisi = getAvvisiPratica(intPraticaId); List<Avviso> avvisi = getAvvisiPratica(intPraticaId);
@ -1078,8 +1074,8 @@ public class SismicaUtil {
try { try {
if (Validator.isNull(controllo)) { if (Validator.isNull(controllo)) {
controllo = aggiungiControlloPratica(intPratica); controllo = aggiungiControlloPratica(intPratica);
esitoLog(esito, intPratica.getNumeroProgetto() + " aggiunto ControlloPratica " esitoLog(esito, intPratica.getNumeroProgetto()
+ controllo.getControlloPraticaId()); + " aggiunto ControlloPratica " + controllo.getControlloPraticaId());
} }
AvvisoLocalServiceUtil.addAvviso(intPraticaId, StringPool.BLANK, AvvisoLocalServiceUtil.addAvviso(intPraticaId, StringPool.BLANK,
avviso.getDtAvviso(), AvvisoUtil.TIPO_AVVISO_DIRETTO, avviso.getDtAvviso(), AvvisoUtil.TIPO_AVVISO_DIRETTO,
@ -1171,8 +1167,8 @@ public class SismicaUtil {
pratica.setFineLavoriParziale(true); pratica.setFineLavoriParziale(true);
pratica.setFineLavoriTotale(false); pratica.setFineLavoriTotale(false);
IntPraticaLocalServiceUtil.updateIntPratica(pratica); IntPraticaLocalServiceUtil.updateIntPratica(pratica);
List<FineLavori> fineLavori = FineLavoriLocalServiceUtil.findByIntPraticaId(pratica.getIntPraticaId(), List<FineLavori> fineLavori = FineLavoriLocalServiceUtil.findByIntPraticaId(
start, start + SLICE, null); pratica.getIntPraticaId(), start, start + SLICE, null);
start += SLICE; start += SLICE;
for (FineLavori fineLavoro : fineLavori) { for (FineLavori fineLavoro : fineLavori) {
if (!fineLavoro.getParziale()) { if (!fineLavoro.getParziale()) {
@ -1197,8 +1193,8 @@ public class SismicaUtil {
pratica.setCollaudoParziale(true); pratica.setCollaudoParziale(true);
pratica.setCollaudoTotale(false); pratica.setCollaudoTotale(false);
IntPraticaLocalServiceUtil.updateIntPratica(pratica); IntPraticaLocalServiceUtil.updateIntPratica(pratica);
List<Collaudo> collaudi = CollaudoLocalServiceUtil.findByIntPraticaId(pratica.getIntPraticaId(), start, List<Collaudo> collaudi = CollaudoLocalServiceUtil.findByIntPraticaId(pratica.getIntPraticaId(),
start + SLICE, null); start, start + SLICE, null);
start += SLICE; start += SLICE;
for (Collaudo collaudo : collaudi) { for (Collaudo collaudo : collaudi) {
if (!collaudo.getParziale()) { if (!collaudo.getParziale()) {
@ -1209,8 +1205,8 @@ public class SismicaUtil {
} }
} }
start = 0; start = 0;
List<Avviso> avvisiCollaudi = AvvisoLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId(), start, List<Avviso> avvisiCollaudi = AvvisoLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId(),
start + SLICE, null); start, start + SLICE, null);
start += SLICE; start += SLICE;
for (Avviso avviso : avvisiCollaudi) { for (Avviso avviso : avvisiCollaudi) {
if (avviso.getOggettoProtocollo().equals("Oggetto: Vidimazione di Collaudo")) { if (avviso.getOggettoProtocollo().equals("Oggetto: Vidimazione di Collaudo")) {
@ -1412,8 +1408,7 @@ public class SismicaUtil {
IntPratica pratica = null; IntPratica pratica = null;
try { try {
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId());
} catch (PortalException e) { } catch (PortalException e) {}
}
if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
@ -1454,15 +1449,13 @@ public class SismicaUtil {
IntPratica pratica = null; IntPratica pratica = null;
try { try {
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId());
} catch (PortalException e) { } catch (PortalException e) {}
}
if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryId());
} catch (Exception e) { } catch (Exception e) {}
}
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey()); + StringPool.SPACE + documento.getPrimaryKey());
@ -1495,15 +1488,13 @@ public class SismicaUtil {
IntPratica pratica = null; IntPratica pratica = null;
try { try {
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId());
} catch (PortalException e) { } catch (PortalException e) {}
}
if (Validator.isNotNull(pratica) && (documento.getFileEntryIdBase() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryIdBase() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdBase()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdBase());
} catch (Exception e) { } catch (Exception e) {}
}
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey()); + StringPool.SPACE + documento.getPrimaryKey());
@ -1514,8 +1505,7 @@ public class SismicaUtil {
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdInvio()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdInvio());
} catch (Exception e) { } catch (Exception e) {}
}
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey()); + StringPool.SPACE + documento.getPrimaryKey());
@ -1525,8 +1515,7 @@ public class SismicaUtil {
FileEntry fileEntry = null; FileEntry fileEntry = null;
try { try {
fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdProtocollo()); fileEntry = DLAppServiceUtil.getFileEntry(documento.getFileEntryIdProtocollo());
} catch (Exception e) { } catch (Exception e) {}
}
corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica " corretti += riparaPermessiFileEntry(companyId, territorio.getGroupId(), fileEntry, "Pratica "
+ pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), " + tipoDocumento
+ StringPool.SPACE + documento.getPrimaryKey()); + StringPool.SPACE + documento.getPrimaryKey());
@ -1559,8 +1548,7 @@ public class SismicaUtil {
IntPratica pratica = null; IntPratica pratica = null;
try { try {
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId());
} catch (PortalException e) { } catch (PortalException e) {}
}
if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
@ -1601,8 +1589,7 @@ public class SismicaUtil {
IntPratica pratica = null; IntPratica pratica = null;
try { try {
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId());
} catch (PortalException e) { } catch (PortalException e) {}
}
if (Validator.isNotNull(pratica) && (documento.getDlFileEntryId() != 0)) { if (Validator.isNotNull(pratica) && (documento.getDlFileEntryId() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
@ -1643,8 +1630,7 @@ public class SismicaUtil {
IntPratica pratica = null; IntPratica pratica = null;
try { try {
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId());
} catch (PortalException e) { } catch (PortalException e) {}
}
if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
@ -1685,8 +1671,7 @@ public class SismicaUtil {
IntPratica pratica = null; IntPratica pratica = null;
try { try {
pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId()); pratica = IntPraticaLocalServiceUtil.getIntPratica(documento.getIntPraticaId());
} catch (PortalException e) { } catch (PortalException e) {}
}
if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) { if (Validator.isNotNull(pratica) && (documento.getFileEntryId() != 0)) {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(pratica.getTerritorioId());
FileEntry fileEntry = null; FileEntry fileEntry = null;
@ -1776,8 +1761,7 @@ public class SismicaUtil {
result = controllo; result = controllo;
} }
} }
} catch (SystemException e) { } catch (SystemException e) {}
}
return result; return result;
} }

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

@ -309,7 +309,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId()); User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId());
// il titolare digitale potrebbe avere più ruoli // il titolare digitale potrebbe avere più ruoli
List<Soggetto> titolareDigitali = soggettoLocalService.getValidTmpByIntPratica_CodiceFiscale( List<Soggetto> titolareDigitali = soggettoLocalService.getValidTmpByIntPratica_CodiceFiscale(
intPraticaId, titolaredigitaleUser.getScreenName(), 0l); intPraticaId, titolaredigitaleUser.getScreenName(), 0);
for (Soggetto titolareDigitale : titolareDigitali) { for (Soggetto titolareDigitale : titolareDigitali) {
addAsseverazione(userId, intPraticaId, dettPraticaId, titolareDigitale, serviceContext); addAsseverazione(userId, intPraticaId, dettPraticaId, titolareDigitale, serviceContext);
} }
@ -327,6 +327,11 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
if (!ValidazionePraticaUtil.isA98Required(dettPratica)) { if (!ValidazionePraticaUtil.isA98Required(dettPratica)) {
addAsseverazione(userId, intPraticaId, dettPraticaId, soggetto, serviceContext); addAsseverazione(userId, intPraticaId, dettPraticaId, soggetto, serviceContext);
} }
} else if (TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(soggetto.getTipologiaSoggetto())) {
if (dettPratica.getCodiceFiscalePrincipaleCollaudatore().equalsIgnoreCase(
soggetto.getCodiceFiscale())) {
addAsseverazione(userId, intPraticaId, dettPraticaId, soggetto, serviceContext);
}
} else { } else {
addAsseverazione(userId, intPraticaId, dettPraticaId, soggetto, serviceContext); addAsseverazione(userId, intPraticaId, dettPraticaId, soggetto, serviceContext);
} }

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

@ -568,7 +568,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
intPratica.setStatus(status); intPratica.setStatus(status);
if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) {
intPratica.setStatoPratica(StatoPraticaConstants.AUTORIZZATA); intPratica.setStatoPratica(StatoPraticaConstants.AUTORIZZATA);
} else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { } else if (AzioniPraticheUtil.isDeposito(intPraticaId)) {
intPratica.setStatoPratica(StatoPraticaConstants.CONFORME); intPratica.setStatoPratica(StatoPraticaConstants.CONFORME);
} else { } else {
// SANATORIA (da capire) // SANATORIA (da capire)

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2707 build.number=2712
build.date=1630332946709 build.date=1632147297567
build.auto.upgrade=true build.auto.upgrade=true
## ##

175
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp

@ -1,25 +1,14 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Collaudo"%>
<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Delega"%> <%@page import="it.tref.liferay.portos.bo.model.Delega"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%> <%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="com.liferay.portal.kernel.util.WebKeys"%>
<%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%>
<%@page import="java.util.Map"%> <%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%> <%@page import="java.util.HashMap"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.service.permission.PortletPermissionUtil"%>
<%@include file="/html/fascicolofe/init.jsp"%> <%@include file="/html/fascicolofe/init.jsp"%>
<% <%
SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer");
@ -41,11 +30,12 @@ if (searchContainer != null) {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(asseverazione.getIntPraticaId()); intPratica = IntPraticaLocalServiceUtil.getIntPratica(asseverazione.getIntPraticaId());
} }
showExpanded = false; showExpanded = false;
}else{ } else {
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
} }
String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId(); String intPraticaIdString = String.valueOf(intPratica.getIntPraticaId());
String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdString;
%> %>
<liferay-ui:icon-menu icon="" showWhenSingleIcon="true" showExpanded="<%= showExpanded %>"> <liferay-ui:icon-menu icon="" showWhenSingleIcon="true" showExpanded="<%= showExpanded %>">
<liferay-portlet:renderURL var="viewFascicoliUrl" > <liferay-portlet:renderURL var="viewFascicoliUrl" >
@ -55,7 +45,7 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
&& intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE && !intPratica.getSospesa() %>"> && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE && !intPratica.getSospesa() %>">
<liferay-portlet:actionURL name="cloneFascicolo" var="cloneFascicoloURL"> <liferay-portlet:actionURL name="cloneFascicolo" var="cloneFascicoloURL">
<liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-clone" message="clone-fascicolo" url="<%= cloneFascicoloURL %>" /> <liferay-ui:icon iconCssClass="fa fa-clone" message="clone-fascicolo" url="<%= cloneFascicoloURL %>" />
</c:if> </c:if>
@ -63,7 +53,7 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
<portlet:renderURL var="viewEntryURL"> <portlet:renderURL var="viewEntryURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo.jsp" />
<portlet:param name="backURL" value="<%= redirect %>" /> <portlet:param name="backURL" value="<%= redirect %>" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
</portlet:renderURL> </portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-eye" message="view" url="<%= viewEntryURL %>" /> <liferay-ui:icon iconCssClass="fa fa-eye" message="view" url="<%= viewEntryURL %>" />
</c:if> </c:if>
@ -71,21 +61,22 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
<c:if test="<%= ValidazionePraticaUtil.canEditPratica(intPratica.getIntPraticaId()) %>"> <c:if test="<%= ValidazionePraticaUtil.canEditPratica(intPratica.getIntPraticaId()) %>">
<portlet:renderURL var="editEntryURL"> <portlet:renderURL var="editEntryURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<portlet:param name="backURL" value="<%= redirect %>" /> <portlet:param name="backURL" value="<%= redirect %>" />
</portlet:renderURL> </portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit" url="<%=editEntryURL%>" /> <liferay-ui:icon iconCssClass="fa fa-edit" message="edit" url="<%=editEntryURL%>" />
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.canDeletePratica(intPratica.getIntPraticaId(), user.getUserId()) %>"> <c:if test="<%= ValidazionePraticaUtil.canDeletePratica(intPratica.getIntPraticaId(),
user.getUserId()) %>">
<portlet:actionURL name="deleteFascicolo" var="deleteFascicoloURL"> <portlet:actionURL name="deleteFascicolo" var="deleteFascicoloURL">
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<portlet:param name="backURL" value="<%= redirect %>" /> <portlet:param name="backURL" value="<%= redirect %>" />
</portlet:actionURL> </portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete" url="<%=deleteFascicoloURL%>" /> <liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete" url="<%=deleteFascicoloURL%>" />
</c:if> </c:if>
<% <%
DettPratica variazioniSoggetto = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( DettPratica variazioniSoggetto = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(
intPratica.getIntPraticaId(), Arrays.asList(new String[] {TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO})); intPratica.getIntPraticaId(), Arrays.<String> asList(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO));
%> %>
<c:if test="<%= AzioniPraticheUtil.canAddVariazioneSoggetti(intPratica.getIntPraticaId()) <c:if test="<%= AzioniPraticheUtil.canAddVariazioneSoggetti(intPratica.getIntPraticaId())
&& Validator.isNull(variazioniSoggetto) %>"> && Validator.isNull(variazioniSoggetto) %>">
@ -94,9 +85,10 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="addGestioneUtenti" var="addGestioneUtentiURL"> <liferay-portlet:actionURL name="addGestioneUtenti" var="addGestioneUtentiURL">
<liferay-portlet:param name="successURL" value="<%= editUsersUrl %>"/> <liferay-portlet:param name="successURL" value="<%= editUsersUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-users" message="add-change-users" url="<%= addGestioneUtentiURL %>" /> <liferay-ui:icon iconCssClass="fa fa-users" message="add-change-users"
url="<%= addGestioneUtentiURL %>" />
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_AGGIUNGI_SOGGETTO) AzioniPraticheUtil.ACTION_AGGIUNGI_SOGGETTO)
@ -108,32 +100,36 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
value="<%= String.valueOf(variazioniSoggetto.getDettPraticaId()) %>" /> value="<%= String.valueOf(variazioniSoggetto.getDettPraticaId()) %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-users" message="edit-change-users" url="<%= editGestioneUtentiURL %>" /> <liferay-ui:icon iconCssClass="fa fa-users" message="edit-change-users"
url="<%= editGestioneUtentiURL %>" />
<liferay-portlet:actionURL name="deleteGestioneUtenti" var="deleteGestioneUtentiURL"> <liferay-portlet:actionURL name="deleteGestioneUtenti" var="deleteGestioneUtentiURL">
<liferay-portlet:param name="successURL" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="successURL" value="<%= viewFascicoliUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-change-users" url="<%= deleteGestioneUtentiURL %>" /> <liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-change-users"
url="<%= deleteGestioneUtentiURL %>" />
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_ANNULLA) <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_ANNULLA)
&& ValidazionePraticaUtil.praticaCanAbort(intPratica.getIntPraticaId(), user.getUserId()) && ValidazionePraticaUtil.praticaCanAbort(intPratica.getIntPraticaId(), user.getUserId())
&& !intPratica.getSospesa() %>"> && !intPratica.getSospesa() %>">
<% <%
Map<String,Object> dataMap = new HashMap<String, Object>(); Map<String,Object> dataMap = new HashMap<String, Object>();
dataMap.put("id", "dialogAnnullamento"); dataMap.put("id", "dialogAnnullamento");
%> %>
<liferay-portlet:renderURL var="abortFascicoloURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="abortFascicoloURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/abort_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<portlet:param name="dialogId" value='<%= String.valueOf(dataMap.get("id")) %>' /> <portlet:param name="dialogId" value='<%= String.valueOf(dataMap.get("id")) %>' />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-window-close-o" message="abort-fascicolo" url="<%= abortFascicoloURL %>" <liferay-ui:icon iconCssClass="fa fa-window-close-o" message="abort-fascicolo"
useDialog="true" data="<%= dataMap %>"/> url="<%= abortFascicoloURL %>" useDialog="true" data="<%= dataMap %>"/>
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.canPrintFascicolo(intPratica.getIntPraticaId()) %>"> <c:if test="<%= AzioniPraticheUtil.canPrintFascicolo(intPratica.getIntPraticaId()) %>">
<liferay-portlet:resourceURL var="stampaFascicoloURL" id="stampaFascicolo" > <liferay-portlet:resourceURL var="stampaFascicoloURL" id="stampaFascicolo" >
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
<liferay-ui:icon iconCssClass="fa fa-print" message="stampa-fascicolo" url="<%= stampaFascicoloURL %>" <liferay-ui:icon iconCssClass="fa fa-print" message="stampa-fascicolo" url="<%= stampaFascicoloURL %>"
target="_blank" /> target="_blank" />
@ -143,18 +139,20 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
boolean canEditVariante = ValidazionePraticaUtil.praticaCanEditVariante(intPratica.getIntPraticaId()); boolean canEditVariante = ValidazionePraticaUtil.praticaCanEditVariante(intPratica.getIntPraticaId());
boolean canDeleteVariante = ValidazionePraticaUtil.praticaCanDeleteVariante(intPratica.getIntPraticaId()); boolean canDeleteVariante = ValidazionePraticaUtil.praticaCanDeleteVariante(intPratica.getIntPraticaId());
%> %>
<c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddVariante || canEditVariante || canDeleteVariante) %>"> <c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddVariante || canEditVariante
|| canDeleteVariante) %>">
<c:if test="<%= !intPratica.getSospesa() %>"> <c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div> <div class="separator"></div>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_VARIANTE) <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_VARIANTE)
&& canAddVariante %>"> && canAddVariante %>">
<liferay-portlet:renderURL var="editUrl" > <liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp"/>
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="addVariante" var="addVarianteURL"> <liferay-portlet:actionURL name="addVariante" var="addVarianteURL">
<liferay-portlet:param name="successURL" value="<%= editUrl %>"/> <liferay-portlet:param name="successURL" value="<%= editUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId())%>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString%>" />
<liferay-portlet:param name="isVariante" value="<%= String.valueOf(true) %>" /> <liferay-portlet:param name="isVariante" value="true" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-variante" url="<%= addVarianteURL %>" /> <liferay-ui:icon iconCssClass="fa fa-plus" message="add-variante" url="<%= addVarianteURL %>" />
</c:if> </c:if>
@ -162,136 +160,158 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
<c:if test="<%= canEditVariante %>"> <c:if test="<%= canEditVariante %>">
<portlet:renderURL var="editEntryURL"> <portlet:renderURL var="editEntryURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<portlet:param name="backURL" value="<%= redirect %>" /> <portlet:param name="backURL" value="<%= redirect %>" />
</portlet:renderURL> </portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-variante" url="<%= editEntryURL %>" /> <liferay-ui:icon iconCssClass="fa fa-edit" message="edit-variante" url="<%= editEntryURL %>" />
</c:if> </c:if>
<c:if test="<%= canDeleteVariante %>"> <c:if test="<%= canDeleteVariante %>">
<liferay-portlet:actionURL name="deleteVariante" var="deleteVarianteURL"> <liferay-portlet:actionURL name="deleteVariante" var="deleteVarianteURL">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
<liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/>
<liferay-portlet:param name="mvcPath" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="mvcPath" value="<%= viewFascicoliUrl %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-variante" url="<%= deleteVarianteURL %>" /> <liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-variante"
url="<%= deleteVarianteURL %>" />
</c:if> </c:if>
</c:if> </c:if>
<% <%
boolean canAddIntegrazione = ValidazionePraticaUtil.praticaCanAddIntegrazione(intPratica.getIntPraticaId()); boolean canAddIntegrazione = ValidazionePraticaUtil.praticaCanAddIntegrazione(intPratica.getIntPraticaId());
boolean canEditIntegrazione = ValidazionePraticaUtil.praticaCanEditIntegrazione(intPratica.getIntPraticaId()); boolean canEditIntegrazione = ValidazionePraticaUtil.praticaCanEditIntegrazione(intPratica.getIntPraticaId());
boolean canDeleteIntegrazione = ValidazionePraticaUtil.praticaCanDeleteIntegrazione(intPratica.getIntPraticaId()); boolean canDeleteIntegrazione = ValidazionePraticaUtil.praticaCanDeleteIntegrazione(
intPratica.getIntPraticaId());
%> %>
<c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddIntegrazione || canEditIntegrazione <c:if test="<%= intPratica.getUserId() == user.getUserId() && (canAddIntegrazione || canEditIntegrazione
|| canDeleteIntegrazione) %>"> || canDeleteIntegrazione) %>">
<c:if test="<%= !intPratica.getSospesa() %>"> <c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div> <div class="separator"></div>
</c:if> </c:if>
<c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_INTEGRAZIONE) <c:if test="<%= AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
&& canAddIntegrazione %>"> AzioniPraticheUtil.ACTION_INTEGRAZIONE) && canAddIntegrazione %>">
<liferay-portlet:renderURL var="editUrl" > <liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="addIntegrazione" var="addIntegrazioneURL"> <liferay-portlet:actionURL name="addIntegrazione" var="addIntegrazioneURL">
<liferay-portlet:param name="successURL" value="<%= editUrl %>"/> <liferay-portlet:param name="successURL" value="<%= editUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="isIntegrazione" value="true" /> <liferay-portlet:param name="isIntegrazione" value="true" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-integrazione" url="<%= addIntegrazioneURL %>" /> <liferay-ui:icon iconCssClass="fa fa-plus" message="add-integrazione"
url="<%= addIntegrazioneURL %>" />
</c:if> </c:if>
<c:if test="<%= canEditIntegrazione %>"> <c:if test="<%= canEditIntegrazione %>">
<portlet:renderURL var="editIntegrazioneURL"> <portlet:renderURL var="editIntegrazioneURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<portlet:param name="backURL" value="<%= redirect %>" /> <portlet:param name="backURL" value="<%= redirect %>" />
</portlet:renderURL> </portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-integrazione" url="<%= editIntegrazioneURL %>" /> <liferay-ui:icon iconCssClass="fa fa-edit" message="edit-integrazione"
url="<%= editIntegrazioneURL %>" />
</c:if> </c:if>
<c:if test="<%= canDeleteIntegrazione %>"> <c:if test="<%= canDeleteIntegrazione %>">
<liferay-portlet:actionURL name="deleteIntegrazione" var="deleteIntegrazioneURL"> <liferay-portlet:actionURL name="deleteIntegrazione" var="deleteIntegrazioneURL">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
<liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/>
<liferay-portlet:param name="mvcPath" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="mvcPath" value="<%= viewFascicoliUrl %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-integrazione" url="<%= deleteIntegrazioneURL %>" /> <liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-integrazione"
url="<%= deleteIntegrazioneURL %>" />
</c:if> </c:if>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= isProgetti || isAltriProgetti || isDeleghe %>"> <c:if test="<%= isProgetti || isAltriProgetti || isDeleghe %>">
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavori(intPratica.getIntPraticaId(), user.getScreenName()) <c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavori(intPratica.getIntPraticaId(),
|| ValidazionePraticaUtil.praticaCanEditFineLavori(intPratica.getIntPraticaId(), user.getScreenName()) %>"> user.getScreenName())
|| ValidazionePraticaUtil.praticaCanEditFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= !intPratica.getSospesa() %>"> <c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div> <div class="separator"></div>
<c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_PARZIALE) <c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
|| AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_FL_TOTALE)) AzioniPraticheUtil.ACTION_FL_PARZIALE)
&& ValidazionePraticaUtil.praticaCanAddFineLavori(intPratica.getIntPraticaId(), user.getScreenName()) %>"> || AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_FL_TOTALE))
&& ValidazionePraticaUtil.praticaCanAddFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<liferay-portlet:renderURL var="editUrl" > <liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/>
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="addFineLavori" var="addFineLavoriURL"> <liferay-portlet:actionURL name="addFineLavori" var="addFineLavoriURL">
<liferay-portlet:param name="successURL" value="<%= editUrl %>"/> <liferay-portlet:param name="successURL" value="<%= editUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="isNewFineLavori" value="true" /> <liferay-portlet:param name="isNewFineLavori" value="true" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-fine-lavori" url="<%= addFineLavoriURL %>" /> <liferay-ui:icon iconCssClass="fa fa-plus" message="add-fine-lavori"
url="<%= addFineLavoriURL %>" />
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPratica.getIntPraticaId(), user.getScreenName()) %>"> <c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<liferay-portlet:renderURL var="editFineLavoriURL" > <liferay-portlet:renderURL var="editFineLavoriURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
<liferay-portlet:param name="isNewFineLavori" value="false" /> <liferay-portlet:param name="isNewFineLavori" value="false" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-fine-lavori" url="<%= editFineLavoriURL %>" /> <liferay-ui:icon iconCssClass="fa fa-edit" message="edit-fine-lavori" url="<%= editFineLavoriURL %>" />
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteFineLavori(intPratica.getIntPraticaId(), user.getScreenName()) %>"> <c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteFineLavori(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<liferay-portlet:actionURL name="deleteFineLavori" var="deleteFineLavoriURL"> <liferay-portlet:actionURL name="deleteFineLavori" var="deleteFineLavoriURL">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
<liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/>
<liferay-portlet:param name="mvcPath" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="mvcPath" value="<%= viewFascicoliUrl %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-fine-lavori" url="<%= deleteFineLavoriURL %>" /> <liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-fine-lavori"
url="<%= deleteFineLavoriURL %>" />
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddCollaudo(intPratica.getIntPraticaId(), user.getScreenName()) <c:if test="<%= ValidazionePraticaUtil.praticaCanAddCollaudo(intPratica.getIntPraticaId(),
user.getScreenName())
|| ValidazionePraticaUtil.praticaCanEditCollaudo(intPratica.getIntPraticaId(), user.getScreenName()) || ValidazionePraticaUtil.praticaCanEditCollaudo(intPratica.getIntPraticaId(), user.getScreenName())
|| ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPratica.getIntPraticaId(), user.getScreenName()) %>"> || ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<c:if test="<%= !intPratica.getSospesa() %>"> <c:if test="<%= !intPratica.getSospesa() %>">
<div class="separator"></div> <div class="separator"></div>
</c:if> </c:if>
<c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_PARZIALE) <c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
|| AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(), AzioniPraticheUtil.ACTION_CO_TOTALE)) AzioniPraticheUtil.ACTION_CO_PARZIALE)
&& ValidazionePraticaUtil.praticaCanAddCollaudo(intPratica.getIntPraticaId(), user.getScreenName())%>"> || AzioniPraticheUtil.isAllowedAction(intPratica.getIntPraticaId(),
AzioniPraticheUtil.ACTION_CO_TOTALE))
&& ValidazionePraticaUtil.praticaCanAddCollaudo(intPratica.getIntPraticaId(),
user.getScreenName())%>">
<liferay-portlet:renderURL var="editUrl" > <liferay-portlet:renderURL var="editUrl" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/>
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="addCollaudo" var="addCollaudoURL"> <liferay-portlet:actionURL name="addCollaudo" var="addCollaudoURL">
<liferay-portlet:param name="successURL" value="<%= editUrl %>"/> <liferay-portlet:param name="successURL" value="<%= editUrl %>"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-collaudo" url="<%= addCollaudoURL %>" /> <liferay-ui:icon iconCssClass="fa fa-plus" message="add-collaudo" url="<%= addCollaudoURL %>" />
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditCollaudo(intPratica.getIntPraticaId(), user.getScreenName()) %>"> <c:if test="<%= ValidazionePraticaUtil.praticaCanEditCollaudo(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<liferay-portlet:renderURL var="editCollaudoURL" > <liferay-portlet:renderURL var="editCollaudoURL" >
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_collaudo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-collaudo" url="<%= editCollaudoURL %>" /> <liferay-ui:icon iconCssClass="fa fa-edit" message="edit-collaudo" url="<%= editCollaudoURL %>" />
</c:if> </c:if>
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPratica.getIntPraticaId(), user.getScreenName()) %>"> <c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteCollaudo(intPratica.getIntPraticaId(),
user.getScreenName()) %>">
<liferay-portlet:actionURL name="deleteCollaudo" var="deleteCollaudoURL"> <liferay-portlet:actionURL name="deleteCollaudo" var="deleteCollaudoURL">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> <liferay-portlet:param name="backURL" value="<%= redirect %>" />
<liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="redirect" value="<%= viewFascicoliUrl %>"/>
<liferay-portlet:param name="mvcPath" value="<%= viewFascicoliUrl %>"/> <liferay-portlet:param name="mvcPath" value="<%= viewFascicoliUrl %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-collaudo" url="<%= deleteCollaudoURL %>" /> <liferay-ui:icon iconCssClass="fa fa-trash-o" message="delete-collaudo"
url="<%= deleteCollaudoURL %>" />
</c:if> </c:if>
</c:if> </c:if>
</c:if> </c:if>
@ -301,7 +321,7 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
%> %>
<portlet:renderURL var="editEntryURL"> <portlet:renderURL var="editEntryURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<portlet:param name="delegaId" value="<%= String.valueOf(delega.getDelegaId()) %>" /> <portlet:param name="delegaId" value="<%= String.valueOf(delega.getDelegaId()) %>" />
<portlet:param name="backURL" value="<%= redirect %>" /> <portlet:param name="backURL" value="<%= redirect %>" />
</portlet:renderURL> </portlet:renderURL>
@ -312,10 +332,11 @@ String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId();
%> %>
<portlet:renderURL var="editAsseverazioniURL"> <portlet:renderURL var="editAsseverazioniURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/edit_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" />
<portlet:param name="backURL" value="<%= redirect %>" /> <portlet:param name="backURL" value="<%= redirect %>" />
</portlet:renderURL> </portlet:renderURL>
<liferay-ui:icon iconCssClass="fa fa-pencil" message="effettua-asseverazione" url="<%= editAsseverazioniURL %>" /> <liferay-ui:icon iconCssClass="fa fa-pencil" message="effettua-asseverazione"
url="<%= editAsseverazioniURL %>" />
<% <%
} }
%> %>

35
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachment.java

@ -1,35 +0,0 @@
/**
* 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 &quot;portos_Mail_EmailTemplateAttachment&quot; 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.
*/
}

301
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentClp.java

@ -1,301 +0,0 @@
/**
* 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<EmailTemplateAttachment>
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<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("emailTemplateId", getEmailTemplateId());
attributes.put("fileEntryId", getFileEntryId());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> 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("<model><model-name>");
sb.append(
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment");
sb.append("</model-name>");
sb.append(
"<column><column-name>emailTemplateId</column-name><column-value><![CDATA[");
sb.append(getEmailTemplateId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>fileEntryId</column-name><column-value><![CDATA[");
sb.append(getFileEntryId());
sb.append("]]></column-value></column>");
sb.append("</model>");
return sb.toString();
}
private long _emailTemplateId;
private long _fileEntryId;
private BaseModel<?> _emailTemplateAttachmentRemoteModel;
private Class<?> _clpSerializerClass = it.tref.liferay.portos.mailmanager.service.ClpSerializer.class;
}

146
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentModel.java

@ -1,146 +0,0 @@
/**
* 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 &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* <p>
* 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}.
* </p>
*
* @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<EmailTemplateAttachment> {
/*
* 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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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();
}

111
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentSoap.java

@ -1,111 +0,0 @@
/**
* 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<EmailTemplateAttachment> models) {
List<EmailTemplateAttachmentSoap> soapModels = new ArrayList<EmailTemplateAttachmentSoap>(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;
}

278
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/model/EmailTemplateAttachmentWrapper.java

@ -1,278 +0,0 @@
/**
* 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;
/**
* <p>
* This class is a wrapper for {@link EmailTemplateAttachment}.
* </p>
*
* @author
* @see EmailTemplateAttachment
* @generated
*/
public class EmailTemplateAttachmentWrapper implements EmailTemplateAttachment,
ModelWrapper<EmailTemplateAttachment> {
public EmailTemplateAttachmentWrapper(
EmailTemplateAttachment emailTemplateAttachment) {
_emailTemplateAttachment = emailTemplateAttachment;
}
@Override
public Class<?> getModelClass() {
return EmailTemplateAttachment.class;
}
@Override
public String getModelClassName() {
return EmailTemplateAttachment.class.getName();
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("emailTemplateId", getEmailTemplateId());
attributes.put("fileEntryId", getFileEntryId());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> 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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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;
}

256
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalService.java

@ -1,256 +0,0 @@
/**
* 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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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;
}

733
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceClp.java

@ -1,733 +0,0 @@
/**
* 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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment>)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;
}

313
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceUtil.java

@ -1,313 +0,0 @@
/**
* 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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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;
}

320
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/EmailTemplateAttachmentLocalServiceWrapper.java

@ -1,320 +0,0 @@
/**
* 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<EmailTemplateAttachmentLocalService> {
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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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;
}

38
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentActionableDynamicQuery.java

@ -1,38 +0,0 @@
/**
* 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");
}
}

140
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPK.java

@ -1,140 +0,0 @@
/**
* 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<EmailTemplateAttachmentPK>,
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();
}
}

362
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistence.java

@ -1,362 +0,0 @@
/**
* 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.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author
* @see EmailTemplateAttachmentPersistenceImpl
* @see EmailTemplateAttachmentUtil
* @generated
*/
public interface EmailTemplateAttachmentPersistence extends BasePersistence<EmailTemplateAttachment> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link EmailTemplateAttachmentUtil} to access the email template attachment persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the email template attachments where emailTemplateId = &#63;.
*
* @param emailTemplateId the email template ID
* @return the matching email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findByEmailTemplateId(
long emailTemplateId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the email template attachments where emailTemplateId = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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 = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @return the ordered range of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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 = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching email template attachment, or <code>null</code> 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 = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching email template attachment, or <code>null</code> 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 = &#63;.
*
* @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 <code>null</code>)
* @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 = &#63; 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 = &#63;.
*
* @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 = &#63; 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 = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param fileEntryId the file entry ID
* @return the matching email template attachment, or <code>null</code> 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 = &#63; or returns <code>null</code> 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 <code>null</code> 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 = &#63; 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 = &#63;.
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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 <code>null</code> if it could not be found.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment, or <code>null</code> 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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @return the ordered range of email template attachments
* @throws SystemException if a system exception occurred
*/
public java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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;
}

526
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentUtil.java

@ -1,526 +0,0 @@
/**
* 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.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author
* @see EmailTemplateAttachmentPersistence
* @see EmailTemplateAttachmentPersistenceImpl
* @generated
*/
public class EmailTemplateAttachmentUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify <code>service.xml</code> 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<EmailTemplateAttachment> findWithDynamicQuery(
DynamicQuery dynamicQuery) throws SystemException {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List<EmailTemplateAttachment> 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<EmailTemplateAttachment> 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 = &#63;.
*
* @param emailTemplateId the email template ID
* @return the matching email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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 = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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 = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @return the ordered range of matching email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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 = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching email template attachment, or <code>null</code> 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 = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param emailTemplateId the email template ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching email template attachment, or <code>null</code> 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 = &#63;.
*
* @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 <code>null</code>)
* @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 = &#63; 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 = &#63;.
*
* @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 = &#63; 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 = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param fileEntryId the file entry ID
* @return the matching email template attachment, or <code>null</code> 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 = &#63; or returns <code>null</code> 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 <code>null</code> 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 = &#63; 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 = &#63;.
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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 <code>null</code> if it could not be found.
*
* @param emailTemplateAttachmentPK the primary key of the email template attachment
* @return the email template attachment, or <code>null</code> 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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> findAll()
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findAll();
}
/**
* Returns a range of all the email template attachments.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @return the ordered range of email template attachments
* @throws SystemException if a system exception occurred
*/
public static java.util.List<it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment> 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;
}

50
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentBaseImpl.java

@ -1,50 +0,0 @@
/**
* 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 &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* <p>
* 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}.
* </p>
*
* @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);
}
}
}

76
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentCacheModel.java

@ -1,76 +0,0 @@
/**
* 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<EmailTemplateAttachment>,
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;
}

34
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentImpl.java

@ -1,34 +0,0 @@
/**
* 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 &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* <p>
* 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.
* </p>
*
* @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() {
}
}

318
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/model/impl/EmailTemplateAttachmentModelImpl.java

@ -1,318 +0,0 @@
/**
* 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 &quot;portos_Mail_EmailTemplateAttachment&quot; database table, with each column mapped to a property of this class.
*
* <p>
* 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}.
* </p>
*
* @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<EmailTemplateAttachment>
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<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("emailTemplateId", getEmailTemplateId());
attributes.put("fileEntryId", getFileEntryId());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> 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<EmailTemplateAttachment> 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("<model><model-name>");
sb.append(
"it.tref.liferay.portos.mailmanager.model.EmailTemplateAttachment");
sb.append("</model-name>");
sb.append(
"<column><column-name>emailTemplateId</column-name><column-value><![CDATA[");
sb.append(getEmailTemplateId());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>fileEntryId</column-name><column-value><![CDATA[");
sb.append(getFileEntryId());
sb.append("]]></column-value></column>");
sb.append("</model>");
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;
}

797
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceBaseImpl.java

@ -1,797 +0,0 @@
/**
* 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.
*
* <p>
* 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}.
* </p>
*
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @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.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<EmailTemplateAttachment> 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();
}

266
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/base/EmailTemplateAttachmentLocalServiceClpInvoker.java

@ -1,266 +0,0 @@
/**
* 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;
}

1491
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/service/persistence/EmailTemplateAttachmentPersistenceImpl.java

File diff soppresso perché troppo grande Load Diff
Caricamento…
Annulla
Salva