@Override public String getPortalInfo() { return wrapped.getPortalInfo(); }
@Override public Enumeration<PortletMode> getSupportedPortletModes() { return wrapped.getSupportedPortletModes(); }
@Override public Enumeration<WindowState> getSupportedWindowStates() { return wrapped.getSupportedWindowStates(); }
for (Enumeration<PortletMode> e = req.getPortalContext().getSupportedPortletModes();e.hasMoreElements();) { PortletMode next = e.nextElement(); if (next.equals(portletMode)) { for (Enumeration<WindowState> e = req.getPortalContext().getSupportedWindowStates();e.hasMoreElements();) { WindowState next = e.nextElement(); if (next.equals(windowState)) {
@Override public String getProperty(String name) { return wrapped.getProperty(name); }
@Override public Enumeration<String> getPropertyNames() { return wrapped.getPropertyNames(); }
for (Enumeration<PortletMode> e = req.getPortalContext().getSupportedPortletModes();e.hasMoreElements();) { PortletMode next = e.nextElement(); if (next.equals(portletMode)) { for (Enumeration<WindowState> e = req.getPortalContext().getSupportedWindowStates();e.hasMoreElements();) { WindowState next = e.nextElement(); if (next.equals(windowState)) {
/** * Reads a portal property from the portal context of the Vaadin request. * * @param name * a string with the name of the portal property to get * @return a string with the value of the property, or <code>null</code> if * the property is not defined */ public String getPortalProperty(String name) { return getRequest().getPortalContext().getProperty(name); }
@Override public Enumeration<String> getPropertyNames() { return wrappedPortalContext.getPropertyNames(); }
/** * Wraps the request in a (possibly portal specific) Vaadin portlet request. * * @param request * The original PortletRequest * @return A wrapped version of the PortletRequest */ protected VaadinPortletRequest createVaadinRequest(PortletRequest request) { PortalContext portalContext = request.getPortalContext(); String portalInfo = portalContext.getPortalInfo() .toLowerCase(Locale.ROOT).trim(); VaadinPortletService service = getService(); if (portalInfo.contains("gatein")) { return new VaadinGateInRequest(request, service); } if (portalInfo.contains("liferay")) { return new VaadinLiferayRequest(request, service); } if (portalInfo.contains("websphere portal")) { return new VaadinWebSpherePortalRequest(request, service); } if (portalInfo.contains("weblogic portal")) { return new VaadinWebLogicPortalRequest(request, service); } return new VaadinPortletRequest(request, service); }
@Override public Enumeration<PortletMode> getSupportedPortletModes() { return wrappedPortalContext.getSupportedPortletModes(); }
@Override public Enumeration<WindowState> getSupportedWindowStates() { return wrappedPortalContext.getSupportedWindowStates(); } }
protected String getMarkupHeadElementSupported() { return wrappedPortalContext.getProperty(PortalContext.MARKUP_HEAD_ELEMENT_SUPPORT); }
public BridgePortalContextImpl(PortalContext portalContext) { this.wrappedPortalContext = portalContext; propertyNameList = new ArrayList<String>(); Enumeration<String> propertyNames = portalContext.getPropertyNames(); while (propertyNames.hasMoreElements()) { propertyNameList.add(propertyNames.nextElement()); } propertyNameList.add(ADD_SCRIPT_RESOURCE_TO_HEAD_SUPPORT); propertyNameList.add(ADD_SCRIPT_TEXT_TO_HEAD_SUPPORT); propertyNameList.add(ADD_STYLE_SHEET_RESOURCE_TO_HEAD_SUPPORT); propertyNameList.add(CREATE_RENDER_URL_DURING_ACTION_PHASE_SUPPORT); propertyNameList.add(POST_REDIRECT_GET_SUPPORT); propertyNameList.add(SET_HTTP_STATUS_CODE_SUPPORT); propertyNameList.add(SET_RESOURCE_RESPONSE_BUFFER_SIZE_SUPPORT); propertyNameList.add(STRICT_NAMESPACED_PARAMETERS_SUPPORT); }
@Override public String getPortalInfo() { return wrappedPortalContext.getPortalInfo(); }
@Override public Enumeration<PortletMode> getSupportedPortletModes() { return wrappedPortalContext.getSupportedPortletModes(); }
@Override public Enumeration<WindowState> getSupportedWindowStates() { return wrappedPortalContext.getSupportedWindowStates(); } }
protected String getMarkupHeadElementSupported() { return wrappedPortalContext.getProperty(PortalContext.MARKUP_HEAD_ELEMENT_SUPPORT); }
public BridgePortalContextImpl(PortalContext portalContext) { this.wrappedPortalContext = portalContext; propertyNameList = new ArrayList<String>(); Enumeration<String> propertyNames = portalContext.getPropertyNames(); while (propertyNames.hasMoreElements()) { propertyNameList.add(propertyNames.nextElement()); } propertyNameList.add(ADD_SCRIPT_RESOURCE_TO_HEAD_SUPPORT); propertyNameList.add(ADD_SCRIPT_TEXT_TO_HEAD_SUPPORT); propertyNameList.add(ADD_STYLE_SHEET_RESOURCE_TO_HEAD_SUPPORT); propertyNameList.add(CREATE_RENDER_URL_DURING_ACTION_PHASE_SUPPORT); propertyNameList.add(POST_REDIRECT_GET_SUPPORT); propertyNameList.add(SET_HTTP_STATUS_CODE_SUPPORT); propertyNameList.add(SET_RESOURCE_RESPONSE_BUFFER_SIZE_SUPPORT); propertyNameList.add(STRICT_NAMESPACED_PARAMETERS_SUPPORT); }
@Override public String getPortalInfo() { return wrappedPortalContext.getPortalInfo(); }