public List<PortletURLGenerationListener> getPortletURLGenerationListeners(PortletApplicationDefinition app) { List<PortletURLGenerationListener> listeners = null; try { listeners = this.portletFactory.getPortletApplicationListeners((PortletApplication) app); } catch (PortletException e) { log.error("Failed to retrieve portlet application listeners: " + e.getMessage(), e); } return listeners; }
/** * PLUTO: PortletPreferencesService */ public PreferencesValidator getPreferencesValidator(PortletDefinition pd) throws ValidatorException { return portletFactory.getPreferencesValidator((org.apache.jetspeed.om.portlet.PortletDefinition)pd); }
public ResourceBundle getResourceBundle(Locale locale) { return pf.getResourceBundle(getPortletDefinition(),locale); }
if (portletFactory.isPortletApplicationRegistered(regPA)) portletFactory.unregisterPortletApplication(regPA); portletFactory.registerPortletApplication(regPA, paClassLoader);
pa.setLocalContextPath(portalContext.getContextPath()); ClassLoader paClassLoader = portletFactory.getPortletApplicationClassLoader(pa); PortletInstance portletInstance = portletFactory.getPortletInstance(jetspeedContext, portletDefinition);
private PortletInstance getPortletInstance(String portletUniqueName) throws PortletException { PortletRegistry registry = Jetspeed.getComponentManager().lookupComponent("portletRegistry"); PortletFactory portletFactory = Jetspeed.getComponentManager().lookupComponent("portletFactory"); ServletContext portalAppContext = ((ServletConfig) Jetspeed.getComponentManager().lookupComponent("ServletConfig")).getServletContext(); PortletDefinition portletDef = registry.getPortletDefinitionByUniqueName(portletUniqueName, true); PortletApplication portletApp = portletDef.getApplication(); ServletContext portletAppContext = portalAppContext.getContext(portletApp.getContextPath()); return portletFactory.getPortletInstance(portletAppContext, portletDef, false); }
protected int list(PrintWriter writer) { writer.println("Listed Portlet Applications"); Iterator iter = registry.getPortletApplications().iterator(); PortletApplication pa; while (iter.hasNext()) { pa = (PortletApplication) iter.next(); writer.println(pa.getName() + ":" + pa.getContextPath() + ":" + (portletFactory.isPortletApplicationRegistered(pa) ? "ACTIVE" : "INACTIVE")); } return OK; }
portletFactory.unregisterPortletApplication(pa); portletFactory.registerPortletApplication(pa, paClassLoader);
componentManager.<PortletFactory>lookupComponent("portletFactory").setPortalContext(context); try
private boolean isAutoSwitchableCustomMode(PortletWindow window, PortletMode customMode) { if (this.autoSwitchingForConfigMode && JetspeedActions.CONFIG_MODE.equals(customMode)) { return true; } if (this.autoSwitchingToEditDefaultsModes && JetspeedActions.EDIT_DEFAULTS_MODE.equals(customMode) && portletFactory != null) { if (portletFactory.hasRenderHelperMethod(window.getPortletDefinition(), PortletMode.EDIT)) { return true; } } return false; } }
PortletFilterInstance filterInstance = this.portletFactory.getPortletFilterInstance(portletApp, filter.getFilterName()); filterchain.addFilterInstance(filterInstance);
throw new PortletException(message); PortletInstance portletInstance = portletFactory.getPortletInstance(appContext, portletDefinition); RequestDispatcher dispatcher = appContext.getRequestDispatcher(servletMappingName); if (null == dispatcher)
boolean thisPAStatus = portletFactory.isPortletApplicationRegistered(pa); if (thisPAStatus)
if (portletFactory.isPortletApplicationRegistered(pa))
return ERROR_UNKNOWN_PA; if (portletFactory.isPortletApplicationRegistered(pa))
return ERROR_UNKNOWN_PA; if (!portletFactory.isPortletApplicationRegistered(pa))