* - skin for portlets that belongs to portal (not in the page).
* Those portlet skins will be merged into one css resource called CompositeSkin <br/>
* we are using ajax to change navigation, if only page is change, only the skin of portlet in page is changed (not the portlet belongs to portal)
*/
public Collection<Skin> getPortalSkins() {
SkinService skinService = getApplicationComponent(SkinService.class);
//
Collection<Skin> skins = new ArrayList<Skin>(skinService.getPortalSkins(skin_));
//
SkinConfig skinConfig = skinService.getSkin(Util.getUIPortal().getName(), skin_);
if (skinConfig != null) {
skins.add(skinConfig);
}
//
Set<SkinConfig> portletConfigs = getPortalPortletSkins();
// don't merge portlet if portlet not available
if (!portletConfigs.isEmpty()) {
skins.add(skinService.merge(portletConfigs));
}
//
return skins;
}