public void onBegin(PortletInvocationEvent event) { // System.out.println("======== onBegin!"); setupThread(event.getPortletRequest(), true); }
/** * @see org.apache.pluto.spi.optional.PortletRegistryService#getPortletContext(java.lang.String) */ public PortletContext getPortletContext(String applicationId) throws PortletContainerException { final PortletRegistryService portletRegistryService = this.getPortletRegistryService(); return portletRegistryService.getPortletContext(applicationId); }
/** * @see org.apache.pluto.spi.optional.PortletRegistryService#getPortletDescriptor(java.lang.String, java.lang.String) */ public PortletDD getPortletDescriptor(String applicationId, String portletName) throws PortletContainerException { final PortletRegistryService portletRegistryService = this.getPortletRegistryService(); return portletRegistryService.getPortletDescriptor(applicationId, portletName); }
protected void notify(PortletInvocationEvent event, boolean pre, Throwable e) { ContainerInvocation inv = containerInvocationService.getInvocation(); PortalAdministrationService pas = inv.getPortletContainer() .getOptionalContainerServices() .getPortalAdministrationService(); Iterator<PortletInvocationListener> i = pas.getPortletInvocationListeners().iterator(); while (i.hasNext()) { PortletInvocationListener listener = i.next(); if (pre) { listener.onBegin(event); } else if (e == null) { listener.onEnd(event); } else { listener.onError(event, e); } } }
.getPortletWindow(); PortletInvocationEvent event = new PortletInvocationEvent( portletRequest, window, methodId.intValue()); .getPortalAdministrationService(); Iterator<AdministrativeRequestListener> it = pas.getAdministrativeRequestListeners() .iterator(); while (it.hasNext()) l.administer(portletRequest, portletResponse);
String applicationName = contextService.register(sConfig); started = true; portletContext = contextService.getPortletContext(applicationName); portletConfig = contextService.getPortletConfig(applicationName, portletName);
administrativeRequestListener.administer(request, response);
/** * @see org.apache.pluto.spi.optional.PortletRegistryService#getPortletApplicationDescriptor(java.lang.String) */ public PortletAppDD getPortletApplicationDescriptor(String name) throws PortletContainerException { final PortletRegistryService portletRegistryService = this.getPortletRegistryService(); return portletRegistryService.getPortletApplicationDescriptor(name); }
/** * @see org.apache.pluto.spi.optional.PortletRegistryService#getRegisteredPortletApplicationIds() */ public Iterator getRegisteredPortletApplicationIds() { final PortletRegistryService portletRegistryService = this.getPortletRegistryService(); return portletRegistryService.getRegisteredPortletApplicationIds(); }
/** * @see org.apache.pluto.spi.optional.PortletRegistryService#getRegisteredPortletApplications() */ public Iterator getRegisteredPortletApplications() { final PortletRegistryService portletRegistryService = this.getPortletRegistryService(); return portletRegistryService.getRegisteredPortletApplications(); }
/** * @see org.apache.pluto.spi.optional.PortletRegistryService#addPortletRegistryListener(org.apache.pluto.spi.optional.PortletRegistryListener) */ public void addPortletRegistryListener(PortletRegistryListener listener) { final PortletRegistryService portletRegistryService = this.getPortletRegistryService(); portletRegistryService.addPortletRegistryListener(listener); }
/** * @see org.apache.pluto.spi.optional.PortletRegistryService#getPortletConfig(java.lang.String, java.lang.String) */ public PortletConfig getPortletConfig(String applicationId, String portletName) throws PortletContainerException { final PortletRegistryService portletRegistryService = this.getPortletRegistryService(); return portletRegistryService.getPortletConfig(applicationId, portletName); }
/** * @see org.apache.pluto.spi.optional.PortletRegistryService#removePortletRegistryListener(org.apache.pluto.spi.optional.PortletRegistryListener) */ public void removePortletRegistryListener(PortletRegistryListener listener) { final PortletRegistryService portletRegistryService = this.getPortletRegistryService(); portletRegistryService.removePortletRegistryListener(listener); }
public void destroy() { synchronized(getServletContext()) { if ( startTimer != null ) { startTimer.cancel(); startTimer = null; } else if ( started && portletContext != null) { started = false; contextService.unregister(portletContext); if (portlet != null) { try { portlet.destroy(); } catch (Exception e) { // ignore } portlet = null; } } super.destroy(); } }
/** * Similar to {@link #getPortletApplicationDeployment(PortletApplicationDeploymentId)} but takes a string like the underlying * Pluto API does. */ protected IPortletApplicationDeploymentTransfer getPortletApplicationDeployment(final String portletAppName) { final PortletAppDD portAppDescriptor; try { portAppDescriptor = this.portletRegistryService.getPortletApplicationDescriptor(portletAppName); } catch (PortletContainerException pce) { this.logger.warn("Could not retrieve IPortletApplicationDeploymentTransfer for id='" + portletAppName + "'", pce); return null; } final IPortletApplicationDeploymentTransfer portAppDepTrans = new PortletApplicationDeploymentTransferImpl(portletAppName, portAppDescriptor); return portAppDepTrans; } }
/** * @see org.jasig.portal.portlet.dao.IPortletDeploymentDao#getPortletDeployment(org.jasig.portal.portlet.deployment.PortletDeploymentId) */ @SuppressWarnings("unchecked") public IPortletDeploymentTransfer getPortletDeployment(PortletDeploymentId portDepId) { final PortletApplicationDeploymentId portAppDepId = portDepId.getPortletApplicationDeploymentId(); final PortletDD portletDescriptor; try { portletDescriptor = this.portletRegistryService.getPortletDescriptor(portAppDepId.toString(), portDepId.toString()); } catch (PortletContainerException pce) { this.logger.warn("Could not retrieve IPortletDeploymentTransfer for id='" + portDepId + "'", pce); return null; } if (portletDescriptor == null) { return null; } final IPortletDeploymentTransfer portDepTrans = new PortletDeploymentTransferImpl(portDepId, portletDescriptor); return portDepTrans; }
/** * @see org.jasig.portal.portlet.dao.IPortletApplicationDeploymentDao#getPortletApplicationDeployments() */ @SuppressWarnings("unchecked") public Set<IPortletApplicationDeploymentTransfer> getPortletApplicationDeployments() { final Iterator<String> registeredPortletApplicationIds = this.portletRegistryService.getRegisteredPortletApplicationIds(); final Set<IPortletApplicationDeploymentTransfer> deployments = new HashSet<IPortletApplicationDeploymentTransfer>(); while (registeredPortletApplicationIds.hasNext()) { final String portAppId = registeredPortletApplicationIds.next(); final IPortletApplicationDeploymentTransfer portAppDep = this.getPortletApplicationDeployment(portAppId); deployments.add(portAppDep); } return deployments; }
portAppDescriptor = this.portletRegistryService.getPortletApplicationDescriptor(portletAppName);