protected boolean attemptRegistration(ServletContext context, ClassLoader paClassLoader) { if (PlutoServices.getServices() != null) { contextService = PlutoServices.getServices().getPortletContextService(); try { ServletConfig sConfig = getServletConfig();
public void init(ServletContext context) throws DriverConfigurationException { if (PlutoServices.getServices() != null) { PageConfig page = new PageConfig(); page.setName("Embedded Portlets"); page.setUri("/WEB-INF/themes/pluto.jsp"); PortletContextService contextService = PlutoServices.getServices().getPortletContextService(); Iterator<DriverPortletContext> portletContexts = contextService.getPortletContexts(); String contextPath = context.getContextPath(); while (portletContexts.hasNext()) { DriverPortletContext driverPortletContext = portletContexts.next(); List<? extends PortletDefinition> portlets = driverPortletContext.getPortletApplicationDefinition() .getPortlets(); for (PortletDefinition portletDefinition : portlets) { String portletName = portletDefinition.getPortletName(); page.addPortlet(contextPath, portletName); } } pages.add(page); initialized = true; } }
public PortletStateAwareResponseContextImpl(PortletContainer container, HttpServletRequest containerRequest, HttpServletResponse containerResponse, PortletWindow window, PortletRequestContext requestContext) { super(container, containerRequest, containerResponse, window, requestContext); this.portletURLProvider = new PortletURLProviderImpl(getPortalURL(), PortletURLProvider.TYPE.RENDER, window, getRequestContext()); this.eventProviderImpl = new EventProviderImpl(getPortletWindow(), PlutoServices.getServices() .getPortletRegistryService()); if (isDebug) { LOGGER.debug("Initialized."); } }
protected void notify(PortletInvocationEvent event, boolean pre, Throwable e) { PortalAdministrationService pas = PlutoServices.getServices().getPortalAdministrationService(); for (PortletInvocationListener listener : pas.getPortletInvocationListeners()) { if (pre) { listener.onBegin(event); } else if (e == null) { listener.onEnd(event); } else { listener.onError(event, e); } } }
PortalAdministrationService pas = PlutoServices.getServices().getPortalAdministrationService();