protected RequestContextComponent getRequestContextComponent() { if (requestContextComponent == null) { requestContextComponent = Jetspeed.getComponentManager().lookupComponent("org.apache.jetspeed.request.RequestContextComponent"); } return requestContextComponent; }
public PortalConfiguration getPortalConfiguration() { return Jetspeed.getConfiguration(); } }
if (Jetspeed.getEngine() != null) Engine engine = Jetspeed.getEngine(); RequestContextComponent contextComponent = null; RequestContext context = null; try String jetuiMode = Jetspeed.getConfiguration().getString(PortalConfigurationConstants.JETUI_CUSTOMIZATION_METHOD, PortalConfigurationConstants.JETUI_CUSTOMIZATION_SERVER); boolean redirectHomeSpace = Jetspeed.getConfiguration().getBoolean(PortalConfigurationConstants.JETUI_REDIRECT_HOME_SPACE, true); if (redirectHomeSpace && jetuiMode.equals(PortalConfigurationConstants.JETUI_CUSTOMIZATION_AJAX)) { String destination = (String)session.getAttribute(LoginConstants.DESTINATION); contextComponent = Jetspeed.getComponentManager().lookupComponent(RequestContextComponent.class); context = contextComponent.create(request, response, getServletConfig()); engine.service(context);
Jetspeed.setEngine(engine); engine.start(); console.info("JetspeedServlet has successfuly started the Jetspeed Portal Engine...."); contextComponent = Jetspeed.getComponentManager().lookupComponent(RequestContextComponent.class);
private Collection getSupportedModes() { RequestContext rc = Jetspeed.getCurrentRequestContext(); if (rc != null) { PortletWindow window = rc.getCurrentPortletWindow(); if (window != null) { return window.getPortletDefinition().getApplication().getSupportedPortletModes(); } } return JetspeedActions.getStandardPortletModes(); }
new Boolean(Jetspeed.getContext().getConfiguration().getBoolean("merge.portal.parameters.with.portlet.parameters", false)); mergePortalParametersBeforePortletParameters = new Boolean(Jetspeed.getContext().getConfiguration().getBoolean("merge.portal.parameters.before.portlet.parameters", false));
public AbstractPortalURL(NavigationalState navState, PortalContext portalContext) { if ( navStateParameter == null ) { navStateParameter = portalContext.getConfigurationProperty("portalurl.navigationalstate.parameter.name", DEFAULT_NAV_STATE_PARAMETER); } this.navState = navState; if ( relativeOnly == null ) { relativeOnly = new Boolean(portalContext.getConfiguration().getBoolean("portalurl.relative.only", false)); } if (pagePipeline == null) { synchronized (lock) { String pagePipelineName = portalContext.getConfiguration().getString(JetspeedEngineConstants.PIPELINE_DEFAULT, "/portal"); PipelineMapper pipelineMapper = Jetspeed.getEngine().getComponentManager().lookupComponent("pipeline-mapper"); pagePipeline = pipelineMapper.getMappedPathByPipelineId(pagePipelineName); portletPipeline = pipelineMapper.getMappedPathByPipelineId(PortalReservedParameters.PORTLET_PIPELINE); } } }
private Collection getSupportedStates() { RequestContext rc = Jetspeed.getCurrentRequestContext(); if (rc != null) { PortletWindow window = rc.getCurrentPortletWindow(); if (window != null) { return window.getPortletDefinition().getApplication().getSupportedWindowStates(); } } return JetspeedActions.getStandardWindowStates(); }
protected PortletPreferencesProvider getPreferencesProvider() { try { return Jetspeed.getComponentManager().lookupComponent("org.apache.jetspeed.components.portletpreferences.PortletPreferencesProvider"); } catch (Exception e) { return null; } }
public HttpServletRequest getHttpServletRequest(GenericPortlet portlet, PortletRequest request) { PortletWindow window = Jetspeed.getCurrentRequestContext().getCurrentPortletWindow(); HttpServletRequest req = (HttpServletRequest)window.getAttribute(SERVLET_REQUEST); if (req == null) { PortletRequestContext rc = window.getPortletRequestContext(); req = requestDispatcherService.getRequestWrapper(rc.getServletContext(), rc.getServletRequest(), request, null, true, false); req.setAttribute(ContainerConstants.PORTLET_CONFIG, rc.getPortletConfig()); req.setAttribute(ContainerConstants.PORTLET_REQUEST, window.getPortletRequest()); req.setAttribute(ContainerConstants.PORTLET_RESPONSE, window.getPortletResponse()); window.setAttribute(SERVLET_REQUEST, req); } return req; }
public void start() { if (Jetspeed.getConfiguration() != null) { this.autoRefreshEnabled = Jetspeed.getConfiguration().getBoolean(PortalConfigurationConstants.AUTO_REFRESH_ENABLED, true); } }
public Object getComponent(String name) { return Jetspeed.getComponentManager().lookupComponent(name); }
public ServletContext getServletContext(GenericPortlet portlet) { PortletWindow window = Jetspeed.getCurrentRequestContext().getCurrentPortletWindow(); ServletContext servletContext = (ServletContext)window.getAttribute(SERVLET_CONTEXT); if (servletContext == null) { servletContext = ServletContextProxy.createProxy(((JetspeedPortletContext)portlet.getPortletContext()).getServletContext(), portlet.getPortletContext()); window.setAttribute(SERVLET_CONTEXT, servletContext); } return servletContext; }
public void init(FilterConfig filterConfig) throws ServletException { PortalConfiguration config = Jetspeed.getConfiguration(); if (config != null) guest = config.getString("default.user.principal"); }
public void init() throws ServletException { super.init(); asm = Jetspeed.getComponentManager().lookupComponent(ApplicationServerManager.class); registry = Jetspeed.getComponentManager().lookupComponent(PortletRegistry.class); portletFactory = Jetspeed.getComponentManager().lookupComponent("portletFactory"); dm = Jetspeed.getComponentManager().lookupComponent("deploymentManager"); }
public HttpServletResponse getHttpServletResponse(GenericPortlet portlet, PortletResponse response) { PortletWindow window = Jetspeed.getCurrentRequestContext().getCurrentPortletWindow(); HttpServletResponse res = (HttpServletResponse)window.getAttribute(SERVLET_RESPONSE); if (res == null) { boolean included = window.getAttribute(PortalReservedParameters.PORTLET_CONTAINER_INVOKER_USE_FORWARD) == null; PortletRequestContext rc = window.getPortletRequestContext(); res = requestDispatcherService.getResponseWraper(rc.getServletContext(), rc.getServletResponse(), window.getPortletRequest(), response, included); if (PortletWindow.Action.RENDER == window.getAction() && !included) { res = new HttpServletPortletResourceResponseWrapper(res); } window.setAttribute(SERVLET_RESPONSE, res); } return res; } }
public void init(FilterConfig filterConfig) throws ServletException { PortalConfiguration config = Jetspeed.getConfiguration(); if (config != null) { guest = config.getString("default.user.principal"); } }
public static PortalConfiguration getConfiguration() { ComponentManager manager = getComponentManager(); if (manager != null) return manager.lookupComponent("PortalConfiguration"); return null; }
RequestContext rc = Jetspeed.getCurrentRequestContext(); if (rc == null)
public void init(FilterConfig filterConfig) throws ServletException { PortalConfiguration config = Jetspeed.getConfiguration(); if (config != null) guest = config.getString("default.user.principal"); }