return jsApplication;
}
private JSPortlet exportPD(PortletDefinition pd, Map settings, Logger log) throws SerializerException
{
JSPortlet jsPortlet = null;
try
{
Set<String> windowIds = prefsProvider.getPortletWindowIds(pd);
if ((windowIds == null) || (windowIds.size() == 0))
return null;
JSEntities entities = new JSEntities();
for (String windowId : windowIds)
{
JSEntity jsEntity = exportEntityPref(pd, windowId, settings, log);
if (jsEntity != null)
entities.add(jsEntity);
}
if (!entities.isEmpty())
{
jsPortlet = new JSPortlet();
jsPortlet.setName(pd.getPortletName());
jsPortlet.setEntities(entities);
log.debug("-----exporting for PD=" + pd.getPortletName());
// jsPortlet.setEntities(entities);
}
}
catch (Exception e)