throw new PortalException("Failed to obtain channel definition using fname: " + fname);
}
}
protected IUserLayoutChannelDescription createUserLayoutChannelDescription(String nodeId, IPortletDefinition chanDef) {
IUserLayoutChannelDescription ulnd = new UserLayoutChannelDescription();
ulnd.setId(nodeId);
ulnd.setName(chanDef.getName());
ulnd.setUnremovable(true);
ulnd.setImmutable(true);
ulnd.setHidden(false);
ulnd.setTitle(chanDef.getTitle());
ulnd.setDescription(chanDef.getDescription());
ulnd.setChannelPublishId("" + chanDef.getPortletDefinitionId().getStringId());
ulnd.setChannelTypeId("" + chanDef.getType().getId());
ulnd.setFunctionalName(chanDef.getFName());
ulnd.setTimeout(chanDef.getTimeout());
Set<IPortletDefinitionParameter> parms = chanDef.getParameters();
for ( IPortletDefinitionParameter parm : parms )
{
ulnd.setParameterValue(parm.getName(),parm.getValue());
}
return ulnd;
}