@Override public PortletMode getPortletMode() { return ((PortletRequest)wrapped).getPortletMode(); }
/** * @return portletRequest.getPortletMode() */ public PortletMode getPortletMode() { return portletRequest.getPortletMode(); }
/** * Uses the current PortletMode as lookup key. */ @Override protected PortletMode getLookupKey(PortletRequest request) throws Exception { return request.getPortletMode(); }
/** * Uses the current PortletMode as lookup key. */ @Override protected PortletMode getLookupKey(PortletRequest request) throws Exception { return request.getPortletMode(); }
/** * The default behavior of this method is to call * <code>getPortletMode()</code> on the wrapped request object. */ public PortletMode getPortletMode() { return request.getPortletMode(); }
/** * Uses the current PortletMode as lookup key. */ @Override protected PortletMode getLookupKey(PortletRequest request) throws Exception { return request.getPortletMode(); }
/** * Uses the current PortletMode as lookup key. */ @Override protected PortletMode getLookupKey(PortletRequest request) throws Exception { return request.getPortletMode(); }
public PortletMode getPortletMode() { return request.getPortletMode(); }
/** * Producer method for the portlet mode. */ @Produces @PortletRequestScoped @Named("portletMode") public static PortletMode producePortletMode() { PortletArtifactProducer pap = producers.get(); assert pap != null; return pap.req.getPortletMode(); }
public static PortletMode getPortletMode() { PortletRequest portletRequest = getPortletRequest(); if (portletRequest == null) { throw new IllegalStateException( "The request is not PortletRequest."); } return portletRequest.getPortletMode(); }
_contextPath = portletRequest.getContextPath(); _locale = portletRequest.getLocale(); _portletMode = portletRequest.getPortletMode(); _portletSessionId = portletRequest.getRequestedSessionId(); _scheme = portletRequest.getScheme();
private boolean isNonFacesRequest(PortletRequest request, PortletResponse response) { // Non Faces request is identified by either the presence of the _jsfBridgeNonFacesView // parameter or the request being for a portlet mode which doesn't have a default // Faces view configured for it. if (request.getParameter(Bridge.NONFACES_TARGET_PATH_PARAMETER) != null) { return true; } String modeDefaultViewId = mDefaultViewIdMap.get(request.getPortletMode().toString()); return modeDefaultViewId == null; }
/** * Returns a lookup key that combines the current PortletMode and the current * value of the specified parameter. * @see javax.portlet.PortletRequest#getPortletMode() * @see #setParameterName */ @Override protected PortletModeParameterLookupKey getLookupKey(PortletRequest request) throws Exception { PortletMode mode = request.getPortletMode(); String parameter = request.getParameter(this.parameterName); return new PortletModeParameterLookupKey(mode, parameter); }
/** * Returns a lookup key that combines the current PortletMode and the current * value of the specified parameter. * @see javax.portlet.PortletRequest#getPortletMode() * @see #setParameterName */ @Override protected PortletModeParameterLookupKey getLookupKey(PortletRequest request) throws Exception { PortletMode mode = request.getPortletMode(); String parameter = request.getParameter(this.parameterName); return new PortletModeParameterLookupKey(mode, parameter); }
private void setCurrentPortletMode(PortletRequest request) { request.setAttribute(CURRENT_PORTLET_MODE, request.getPortletMode() .toString()); }
/** * Constructor for NoHandlerFoundException. * @param msg the detail message * @param request the current portlet request, * for further context to be included in the exception message */ public NoHandlerFoundException(String msg, PortletRequest request) { super(msg + ": mode '" + request.getPortletMode() + "', phase '" + request.getAttribute(PortletRequest.LIFECYCLE_PHASE) + "', parameters " + StylerUtils.style(request.getParameterMap())); }
/** * Constructor for NoHandlerFoundException. * @param msg the detail message * @param request the current portlet request, * for further context to be included in the exception message */ public NoHandlerFoundException(String msg, PortletRequest request) { super(msg + ": mode '" + request.getPortletMode() + "', phase '" + request.getAttribute(PortletRequest.LIFECYCLE_PHASE) + "', parameters " + StylerUtils.style(request.getParameterMap())); }
protected void populateConveniencePortletProperties(PortletRequest request) { request.setAttribute("portletMode", request.getPortletMode().toString()); request.setAttribute("portletWindowState", request.getWindowState().toString()); }
/** * @param location * @param invocation */ private void executeActionResult(String location, ActionInvocation invocation) { ActionResponse res = PortletActionContext.getActionResponse(); // View is rendered outside an action...uh oh... res.setRenderParameter(PortletActionConstants.ACTION_PARAM, "freemarkerDirect"); res.setRenderParameter("location", location); res.setRenderParameter(PortletActionConstants.MODE_PARAM, PortletActionContext .getRequest().getPortletMode().toString()); }
private String createBridgeRequestScope(PortletRequest request) { // Generate an RMI UID, which is a unique identifier WITHIN the local // host. This will be used as the new lifecyleID UID uid = new UID(); return qualifyScopeId(mPortletConfig.getPortletName(), request.getPortletSession(true).getId(), request.getPortletMode().toString(), uid.toString()); }