public JetspeedPortletInvokerService(ServletConfig servletConfig, PortalContext portalContext, PortletFactory portletFactory, ContainerRequestResponseUnwrapper requestResponseUnwrapper) { this.servletConfig = servletConfig; this.portalContext = portalContext; this.portletFactory = portletFactory; this.requestResponseUnwrapper = requestResponseUnwrapper; this.servletMappingName = portalContext.getConfigurationProperty(INVOKER_SERVLET_MAPPING_NAME, DEFAULT_MAPPING_NAME); }
public PortalConfiguration getPortalConfiguration() { return Jetspeed.getConfiguration(); } }
public JetspeedPortalContext(Engine engine, PortalConfiguration configuration, String applicationRoot) { this.engine = engine; this.configuration = configuration; this.applicationRoot = applicationRoot; initialize(); }
protected RequestContextComponent getRequestContextComponent() { if (requestContextComponent == null) { requestContextComponent = Jetspeed.getComponentManager().lookupComponent("org.apache.jetspeed.request.RequestContextComponent"); } return requestContextComponent; }
public JetspeedEngine(PortalConfiguration configuration, String applicationRoot, ServletConfig config, ComponentManager componentManager ) { this.componentManager = componentManager; this.context = new JetspeedPortalContext(this, configuration, applicationRoot); this.config = config; context.setApplicationRoot(applicationRoot); context.setConfiguration(configuration); defaultPipelineName = configuration.getString(PIPELINE_DEFAULT, "jetspeed-pipeline"); configuration.setString(JetspeedEngineConstants.APPLICATION_ROOT_KEY, applicationRoot); // Make these availble as beans to Spring componentManager.addComponent("Engine", this); componentManager.addComponent("PortalContext", context); componentManager.addComponent("PortalConfiguration", configuration); }
public void init(FilterConfig filterConfig) throws ServletException { PortalConfiguration config = Jetspeed.getConfiguration(); if (config != null) guest = config.getString("default.user.principal"); }
public void start() { if (Jetspeed.getConfiguration() != null) { this.autoRefreshEnabled = Jetspeed.getConfiguration().getBoolean(PortalConfigurationConstants.AUTO_REFRESH_ENABLED, true); } }
/** * @see java.security.Permission#getActions() */ public String getActions() { if (permission.getActions() == null) { permission.setActions(JetspeedActions.getContainerActions(mask)); } return permission.getActions(); }
public BaseJetspeedPermission(PersistentJetspeedPermission permission) { super(permission.getName()); this.permission = permission; this.mask = JetspeedActions.getContainerActionsMask(permission.getActions()); }
public BaseJetspeedPermission(String type, String name, String actions) { super(name); this.permission = new PersistentJetspeedPermissionImpl(type, name); this.mask = JetspeedActions.getContainerActionsMask(actions); }
public int parseActions(String actions) { return JetspeedActions.getContainerActionsMask(actions); }
public boolean isWindowStateAllowed(WindowState state) { return getSupportedStates().contains(state); }
public Enumeration getSupportedPortletModes() { return Collections.enumeration(getSupportedModes()); }
public Object getComponent(String name) { return Jetspeed.getComponentManager().lookupComponent(name); }
public void init(FilterConfig filterConfig) throws ServletException { PortalConfiguration config = Jetspeed.getConfiguration(); if (config != null) { guest = config.getString("default.user.principal"); } }
/** * Set the configuration properties for this Jetspeed engine context. * * @param configuration - the configuration properties */ public void setConfiguration(PortalConfiguration configuration) { this.configuration = configuration; initialize(); }
protected PortletPreferencesProvider getPreferencesProvider() { try { return Jetspeed.getComponentManager().lookupComponent("org.apache.jetspeed.components.portletpreferences.PortletPreferencesProvider"); } catch (Exception e) { return null; } }
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; }
public PortletActionSecurityConstraintsBehavior(PageManager pageManager, PageProfilerValve profilerValve, Boolean enableCreateUserPagesFromRolesOnEdit ) { super( pageManager, profilerValve, enableCreateUserPagesFromRolesOnEdit ); PortalConfiguration config = Jetspeed.getConfiguration(); if (config != null) { guest = config.getString("default.user.principal"); } }