public InitParamBean(final InitParam initParam) { paramName = initParam.getParamName(); paramValue = initParam.getParamValue(); ArrayList<DescriptionBean> descriptionBeanList = new ArrayList<DescriptionBean>(); for (Description description : initParam.getDescriptions()) { descriptionBeanList.add(new DescriptionBean(description)); } descriptionBeans = descriptionBeanList; }
InitParam copyInitParam = copy.addInitParam(initParam.getParamName()); copyInitParam.setParamValue(initParam.getParamValue()); for (Description desc : initParam.getDescriptions()) Description copyDesc = copyInitParam.addDescription(desc.getLang()); copyDesc.setDescription(desc.getDescription()); parentPortlet.setParamValue(source.getPortletName());
/** * @see javax.portlet.filter.FilterConfig#getInitParameter(java.lang.String) */ public String getInitParameter(String name) { InitParam initParam = this.filter.getInitParam(name); return (initParam != null ? initParam.getParamValue() : null); }
if ("portlet-icon".equals(initParam.getParamName())) portletIcon = initParam.getParamValue();
public InitParam getInitParam(String name) { for (InitParam param : getInitParams()) { if (param.getParamName().equals(name)) { return param; } } return null; }
jip.setParamValue(ip.getParamValue()); for (org.apache.pluto.container.om.portlet.Description desc : ip.getDescriptions()) Description jdesc = jip.addDescription(desc.getLang()); jdesc.setDescription(desc.getDescription());
sizes = initParam.getParamValue(); return Integer.parseInt(initParam.getParamValue());
public InitParam getInitParam(String name) { for (InitParam param : getInitParams()) { if (param.getParamName().equals(name)) { return param; } } return null; }
jip.setParamValue(ip.getParamValue()); for (org.apache.pluto.container.om.portlet.Description desc : ip.getDescriptions()) Description jdesc = jip.addDescription(desc.getLang()); jdesc.setDescription(desc.getDescription());
public String getPortletIcon(RequestContext context, String windowId, String defaultPortletIcon) { String portletIcon = null; PortletWindow window = context.getPortletWindow(windowId); if (window != null && window.getPortletDefinition() != null) { InitParam portletIconInitParam = window.getPortletDefinition().getInitParam("portlet-icon"); if (portletIconInitParam != null) { portletIcon = portletIconInitParam.getParamValue(); } } return (portletIcon != null ? portletIcon : defaultPortletIcon); }
/** * @see javax.portlet.filter.FilterConfig#getInitParameterNames() */ public Enumeration<String> getInitParameterNames() { if (this.initParamNames == null) { this.initParamNames = new Vector<String>(); for (InitParam initParam : this.filter.getInitParams()) { this.initParamNames.add(initParam.getParamName()); } } return this.initParamNames.elements(); }
String iconParamVal = ( iconParam == null ) ? null : iconParam.getParamValue(); if ( iconParamVal != null && iconParamVal.length() > 0 )
sizesVal = ( sizesParam == null ) ? null : sizesParam.getParamValue(); String colsParamVal = ( colsParam == null ) ? null : colsParam.getParamValue(); if ( colsParamVal != null && colsParamVal.length() > 0 )
image = "images/portlets/" + param.getParamValue();