protected PortletConfig getPortletConfig( PortletEntry portletEntry, String id)
{
Map map = new HashMap();
map.putAll(portletEntry.getParameterMap());
PortletConfig pc = new BasePortletConfig();
pc.setName( portletEntry.getName() );
addParentInitParameters(portletEntry, map);
pc.setInitParameters( map );
pc.setMetainfo( getMetaData( portletEntry ) );
pc.setURL( portletEntry.getURL() );
pc.setCachedOnURL( portletEntry.isCachedOnURL() );
//pc.setSecurityRef(portletEntry.getSecurityRef());
pc.setSecurityRef(getSecurityReference(null, portletEntry));
if (runDataService != null)
{
JetspeedRunData rundata = runDataService.getCurrentRunData();
if (rundata != null)
{
Profile profile = rundata.getProfile();
if (profile != null)
{
pc.setPageId(profile.getId());
}
}
}
pc.setPortletId(id);
return pc;
}