/** * @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); }
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; }
sizes = initParam.getParamValue(); return Integer.parseInt(initParam.getParamValue());
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); }
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 )
portletIcon = initParam.getParamValue();
image = "images/portlets/" + param.getParamValue();
copyInitParam.setParamValue(initParam.getParamValue());