diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/axis.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/axis.jar new file mode 100644 index 00000000..a4ad0aa8 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/axis.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-discovery.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-discovery.jar new file mode 100644 index 00000000..8355f0be Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-discovery.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar new file mode 100644 index 00000000..8758a96b Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/httpclient.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/httpclient.jar new file mode 100644 index 00000000..9e0df509 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/httpclient.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jaxrpc.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jaxrpc.jar new file mode 100644 index 00000000..a2c13d9a Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jaxrpc.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar new file mode 100644 index 00000000..80a5737f Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar new file mode 100644 index 00000000..e5a9342f Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar new file mode 100644 index 00000000..068867eb Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar new file mode 100644 index 00000000..7d7435fe Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar new file mode 100644 index 00000000..796ab7f5 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar new file mode 100644 index 00000000..67a35fcb Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar new file mode 100644 index 00000000..46733464 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java index a62d2c40..ca03c280 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java @@ -355,8 +355,8 @@ public interface IntPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public java.util.List svuotaDatabase(long companyId) - throws java.lang.Exception; + public java.util.List svuotaDatabase( + com.liferay.portal.service.ServiceContext serviceContext); public void clearDb() throws java.lang.Exception; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java index f309fa80..b1a50f05 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java @@ -157,7 +157,9 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { _methodName27 = "svuotaDatabase"; - _methodParameterTypes27 = new String[] { "long" }; + _methodParameterTypes27 = new String[] { + "com.liferay.portal.service.ServiceContext" + }; _methodName28 = "clearDb"; @@ -1351,21 +1353,18 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { } @Override - public java.util.List svuotaDatabase(long companyId) - throws java.lang.Exception { + public java.util.List svuotaDatabase( + com.liferay.portal.service.ServiceContext serviceContext) { Object returnObj = null; try { returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, new Object[] { companyId }); + _methodParameterTypes27, + new Object[] { ClpSerializer.translateInput(serviceContext) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; - } - if (t instanceof RuntimeException) { throw (RuntimeException)t; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java index 5bf3702f..3174e6f6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java @@ -393,8 +393,8 @@ public class IntPraticaLocalServiceUtil { } public static java.util.List svuotaDatabase( - long companyId) throws java.lang.Exception { - return getService().svuotaDatabase(companyId); + com.liferay.portal.service.ServiceContext serviceContext) { + return getService().svuotaDatabase(serviceContext); } public static void clearDb() throws java.lang.Exception { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java index 9f58a3b1..ee1f148d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java @@ -418,9 +418,9 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, } @Override - public java.util.List svuotaDatabase(long companyId) - throws java.lang.Exception { - return _intPraticaLocalService.svuotaDatabase(companyId); + public java.util.List svuotaDatabase( + com.liferay.portal.service.ServiceContext serviceContext) { + return _intPraticaLocalService.svuotaDatabase(serviceContext); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java index 2345264c..78195cfd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java @@ -156,7 +156,9 @@ public class IntPraticaLocalServiceClpInvoker { _methodName208 = "svuotaDatabase"; - _methodParameterTypes208 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { + "com.liferay.portal.service.ServiceContext" + }; _methodName210 = "clearDb"; @@ -633,7 +635,7 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName208.equals(name) && Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { - return IntPraticaLocalServiceUtil.svuotaDatabase(((Long)arguments[0]).longValue()); + return IntPraticaLocalServiceUtil.svuotaDatabase((com.liferay.portal.service.ServiceContext)arguments[0]); } if (_methodName210.equals(name) && diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java index 1ca00819..455b4f0f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java @@ -26,6 +26,7 @@ import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocAggiuntiva; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.FineLavori; +import it.tref.liferay.portos.bo.model.HistoryWorkflowAction; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.ParereGeologo; @@ -59,6 +60,8 @@ import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; +import it.tref.liferay.portos.mailmanager.model.Email; +import it.tref.liferay.portos.mailmanager.model.EmailAttachment; import it.tref.liferay.portos.report.shared.constants.ReportConstants; import it.tref.liferay.portos.report.shared.dto.ReportDto; import it.tref.liferay.portos.report.shared.dto.ReportResultDto; @@ -77,10 +80,14 @@ import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; +import java.util.Map.Entry; import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.lang.StringUtils; +import com.liferay.portal.kernel.cache.CacheRegistryUtil; +import com.liferay.portal.kernel.cache.MultiVMPoolUtil; +import com.liferay.portal.kernel.cache.SingleVMPoolUtil; import com.liferay.portal.kernel.dao.jdbc.DataAccess; import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.DynamicQuery; @@ -102,6 +109,7 @@ import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.IndexerRegistryUtil; +import com.liferay.portal.kernel.servlet.DirectServletRegistryUtil; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.MimeTypesUtil; @@ -123,6 +131,12 @@ import com.liferay.portal.workflow.kaleo.model.KaleoLog; import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; import com.liferay.portlet.documentlibrary.NoSuchFolderException; +import com.liferay.portlet.documentlibrary.model.DLFileEntry; +import com.liferay.portlet.documentlibrary.model.DLFolder; +import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; +import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil; +import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil; +import com.liferay.portlet.social.model.SocialActivity; /** * The implementation of the int pratica local service. @@ -327,23 +341,138 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return intPratica; } - public List svuotaDatabase(long companyId) throws Exception { - List esito = new ArrayList<>(); - Connection connection = DataAccess.getUpgradeOptimizedConnection(); - Statement s = connection.createStatement(); - for (String tabella : new String[] { "intpratica", "dettpratica", "controllopratica" }) { - s.execute("TRUNCATE TABLE portos_bo_" + tabella); - esito.add("tabella portos_bo_" + tabella + " svuotata"); + public List svuotaDatabase(ServiceContext serviceContext) { + List esito = new ArrayList(); + try { + Connection connection = DataAccess.getUpgradeOptimizedConnection(); + Statement statement = connection.createStatement(); + + Map> svuotare = new HashMap>() { + private static final long serialVersionUID = 1; + { + put("kaleoinstance", KaleoInstance.class); + put("kaleoinstancetoken", KaleoInstanceToken.class); + put("kaleolog", KaleoLog.class); + put("kaleotaskassignmentinstance", KaleoTaskAssignmentInstance.class); + put("kaleotaskinstancetoken", KaleoTaskInstanceToken.class); + put("portos_bo_allegatomanuale", AllegatoManuale.class); + put("portos_bo_asseverazione", Asseverazione.class); + put("portos_bo_avviso", Avviso.class); + put("portos_bo_collaudo", Collaudo.class); + put("portos_bo_controllopratica", ControlloPratica.class); + put("portos_bo_delega", Delega.class); + put("portos_bo_dettpratica", DettPratica.class); + put("portos_bo_docaggiuntiva", DocAggiuntiva.class); + put("portos_bo_docpratica", DocPratica.class); + put("portos_bo_finelavori", FineLavori.class); + put("portos_bo_historyworkflowaction", HistoryWorkflowAction.class); + put("portos_bo_intpratica", IntPratica.class); + put("portos_bo_pagamento", Pagamento.class); + put("portos_bo_pareregeo", ParereGeologo.class); + put("portos_bo_soggetto", Soggetto.class); + put("portos_bo_sorteggio", Sorteggio.class); + put("portos_bo_tempistica", Tempistica.class); + put("portos_mail_email", Email.class); + put("portos_mail_emailattachment", EmailAttachment.class); + put("socialactivity", SocialActivity.class); + put("workflowinstancelink", WorkflowInstanceLink.class); + } + }; + + for (Entry> entry : svuotare.entrySet()) { + String table = entry.getKey(); + String className = entry.getValue().getName(); + + statement.execute("TRUNCATE TABLE " + table); + esitoLog(esito, "Tabella " + table + " svuotata"); + counterLocalService.increment(className); + counterLocalService.reset(className); + esitoLog(esito, "Contatore di " + className + " azzerato"); + } + configurazioneLocalService.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext); + + // Reset di tutte le cache + SingleVMPoolUtil.clear(); + MultiVMPoolUtil.clear(); + CacheRegistryUtil.clear(); + DirectServletRegistryUtil.clearServlets(); + + // Pulizia Document Library + int start = 0; + int totali = 0; + + List folderDaSvuotare = new ArrayList() { + private static final long serialVersionUID = 1; + { + add("Allegati"); + add("Avvisi"); + add("MailManager_EmailAttachments"); + add("Report_Sorteggio"); + add("Report_Sorteggio_BO"); + } + }; + + List fileEntries; + do { + fileEntries = DLFileEntryLocalServiceUtil.getFileEntries(start, start + 1); + totali++; + for (DLFileEntry fileEntry : fileEntries) { + DLFolder folder = fileEntry.getFolder(); + DLFolder parent = folder; + if (Validator.isNotNull(folder)) { + while (Validator.isNotNull(parent.getParentFolderId())) { + folder = parent; + parent = parent.getParentFolder(); + } + if (folderDaSvuotare.contains(parent.getName())) { + if (0 == folder.getParentFolderId()) { + _log.info("Cancello il file " + fileEntry.getName()); + DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); + } else { + _log.info("Cancello la cartella " + folder.getName()); + DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); + } + start--; + } else { + _log.info("Mantengo il file " + fileEntry.getTitle()); + } + } else { + _log.info("Il file " + fileEntry.getName() + " non appartiene a nessuna cartella"); + } + } + start++; + } while (fileEntries.size() > 0); + + final int SLICE = 100; + int cancellati = start = totali = 0; + List folders; + do { + folders = DLFolderLocalServiceUtil.getDLFolders(start, start + SLICE); + int rimossi = 0; + totali += folders.size(); + for (DLFolder folder : folders) { + int nFiles = DLFileEntryLocalServiceUtil.getFileEntriesCount(folder.getGroupId(), + folder.getFolderId()); + if ((0 == nFiles) && (0 != folder.getParentFolderId())) { + DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); + cancellati++; + rimossi++; + } + } + start += folders.size() - rimossi; + _log.info("Analizzate " + totali + " cartelle, cancellate " + cancellati); + } while (folders.size() > 0); + esitoLog(esito, "Analizzate " + totali + " cartelle, cancellate " + cancellati); + } catch (Exception e) { + esitoLog(esito, "Errore: " + e.getMessage()); } - esito.add(resetCounter(IntPratica.class)); - esito.add(resetCounter(DettPratica.class)); - esito.add(resetCounter(ControlloPratica.class)); + _log.info("Elaborazione terminata correttamente"); return esito; } - private String resetCounter(Class classRef) throws SystemException { - counterLocalService.reset(classRef.getName()); - return "Contatore di " + classRef.getSimpleName() + " azzerato"; + private void esitoLog(List esito, String msg) { + esito.add(msg); + _log.info(msg); } public void clearDb() throws Exception { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index bd2b73d8..b7a97fd5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=2441 - build.date=1596283260587 + build.number=2442 + build.date=1598274480458 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld new file mode 100644 index 00000000..98efa6a6 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld @@ -0,0 +1,572 @@ + + + + + JSTL 1.2 core library + JSTL core + 1.2 + c + http://java.sun.com/jsp/jstl/core + + + + Provides core validation features for JSTL tags. + + + org.apache.taglibs.standard.tlv.JstlCoreTLV + + + + + + Catches any Throwable that occurs in its body and optionally + exposes it. + + catch + org.apache.taglibs.standard.tag.common.core.CatchTag + JSP + + +Name of the exported scoped variable for the +exception thrown from a nested action. The type of the +scoped variable is the type of the exception thrown. + + var + false + false + + + + + + Simple conditional tag that establishes a context for + mutually exclusive conditional operations, marked by + <when> and <otherwise> + + choose + com.liferay.taglib.core.ChooseTag + JSP + + + + + Simple conditional tag, which evalutes its body if the + supplied condition is true and optionally exposes a Boolean + scripting variable representing the evaluation of this condition + + if + com.liferay.taglib.core.IfTag + JSP + + +The test condition that determines whether or +not the body content should be processed. + + test + true + true + boolean + + + +Name of the exported scoped variable for the +resulting value of the test condition. The type +of the scoped variable is Boolean. + + var + false + false + + + +Scope for var. + + scope + false + false + + + + + + Retrieves an absolute or relative URL and exposes its contents + to either the page, a String in 'var', or a Reader in 'varReader'. + + import + org.apache.taglibs.standard.tag.rt.core.ImportTag + org.apache.taglibs.standard.tei.ImportTEI + JSP + + +The URL of the resource to import. + + url + true + true + + + +Name of the exported scoped variable for the +resource's content. The type of the scoped +variable is String. + + var + false + false + + + +Scope for var. + + scope + false + false + + + +Name of the exported scoped variable for the +resource's content. The type of the scoped +variable is Reader. + + varReader + false + false + + + +Name of the context when accessing a relative +URL resource that belongs to a foreign +context. + + context + false + true + + + +Character encoding of the content at the input +resource. + + charEncoding + false + true + + + + + + The basic iteration tag, accepting many different + collection types and supporting subsetting and other + functionality + + forEach + org.apache.taglibs.standard.tag.rt.core.ForEachTag + org.apache.taglibs.standard.tei.ForEachTEI + JSP + + +Collection of items to iterate over. + + items + false + true + java.lang.Object + + java.lang.Object + + + + +If items specified: +Iteration begins at the item located at the +specified index. First item of the collection has +index 0. +If items not specified: +Iteration begins with index set at the value +specified. + + begin + false + true + int + + + +If items specified: +Iteration ends at the item located at the +specified index (inclusive). +If items not specified: +Iteration ends when index reaches the value +specified. + + end + false + true + int + + + +Iteration will only process every step items of +the collection, starting with the first one. + + step + false + true + int + + + +Name of the exported scoped variable for the +current item of the iteration. This scoped +variable has nested visibility. Its type depends +on the object of the underlying collection. + + var + false + false + + + +Name of the exported scoped variable for the +status of the iteration. Object exported is of type +javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested +visibility. + + varStatus + false + false + + + + + + Iterates over tokens, separated by the supplied delimeters + + forTokens + org.apache.taglibs.standard.tag.rt.core.ForTokensTag + JSP + + +String of tokens to iterate over. + + items + true + true + java.lang.String + + java.lang.String + + + + +The set of delimiters (the characters that +separate the tokens in the string). + + delims + true + true + java.lang.String + + + +Iteration begins at the token located at the +specified index. First token has index 0. + + begin + false + true + int + + + +Iteration ends at the token located at the +specified index (inclusive). + + end + false + true + int + + + +Iteration will only process every step tokens +of the string, starting with the first one. + + step + false + true + int + + + +Name of the exported scoped variable for the +current item of the iteration. This scoped +variable has nested visibility. + + var + false + false + + + +Name of the exported scoped variable for the +status of the iteration. Object exported is of +type +javax.servlet.jsp.jstl.core.LoopTag +Status. This scoped variable has nested +visibility. + + varStatus + false + false + + + + + + Like <%= ... >, but for expressions. + + out + org.apache.taglibs.standard.tag.rt.core.OutTag + JSP + + +Expression to be evaluated. + + value + true + true + + + +Default value if the resulting value is null. + + default + false + true + + + +Determines whether characters <,>,&,'," in the +resulting string should be converted to their +corresponding character entity codes. Default value is +true. + + escapeXml + false + true + + + + + + + Subtag of <choose> that follows <when> tags + and runs only if all of the prior conditions evaluated to + 'false' + + otherwise + com.liferay.taglib.core.OtherwiseTag + JSP + + + + + Adds a parameter to a containing 'import' tag's URL. + + param + org.apache.taglibs.standard.tag.rt.core.ParamTag + JSP + + +Name of the query string parameter. + + name + true + true + + + +Value of the parameter. + + value + false + true + + + + + + Redirects to a new URL. + + redirect + org.apache.taglibs.standard.tag.rt.core.RedirectTag + JSP + + +The URL of the resource to redirect to. + + url + false + true + + + +Name of the context when redirecting to a relative URL +resource that belongs to a foreign context. + + context + false + true + + + + + + Removes a scoped variable (from a particular scope, if specified). + + remove + org.apache.taglibs.standard.tag.common.core.RemoveTag + empty + + +Name of the scoped variable to be removed. + + var + true + false + + + +Scope for var. + + scope + false + false + + + + + + Sets the result of an expression evaluation in a 'scope' + + set + org.apache.taglibs.standard.tag.rt.core.SetTag + JSP + + +Name of the exported scoped variable to hold the value +specified in the action. The type of the scoped variable is +whatever type the value expression evaluates to. + + var + false + false + + + +Expression to be evaluated. + + value + false + true + + java.lang.Object + + + + +Target object whose property will be set. Must evaluate to +a JavaBeans object with setter property property, or to a +java.util.Map object. + + target + false + true + + + +Name of the property to be set in the target object. + + property + false + true + + + +Scope for var. + + scope + false + false + + + + + + Creates a URL with optional query parameters. + + url + org.apache.taglibs.standard.tag.rt.core.UrlTag + JSP + + +Name of the exported scoped variable for the +processed url. The type of the scoped variable is +String. + + var + false + false + + + +Scope for var. + + scope + false + false + + + +URL to be processed. + + value + false + true + + + +Name of the context when specifying a relative URL +resource that belongs to a foreign context. + + context + false + true + + + + + + Subtag of <choose> that includes its body if its + condition evalutes to 'true' + + when + com.liferay.taglib.core.WhenTag + JSP + + +The test condition that determines whether or not the +body content should be processed. + + test + true + true + boolean + + + +