public FederatedPortletInvoker resolvePortletInvokerFor(String invokerId, FederatingPortletInvoker callingInvoker, String compoundPortletId) throws NoSuchPortletException { if (compoundPortletId != null) { throw new NoSuchPortletException(compoundPortletId); } else { return null; } }
public Portlet getPortlet(PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException { if (portletContext == null) { throw new IllegalArgumentException("No null portlet id accepted"); } String portletId = portletContext.getId(); PortletImpl portlet = portlets.get(portletId); if (portlet == null) { throw new NoSuchPortletException(portletId); } return portlet; }
throw new NoSuchPortletException(portletId);
public PropertyMap getProperties(PortletContext portletContext, Set<String> keys) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException { PortletImpl portlet = portlets.get(portletContext.getId()); if (portlet == null) { throw new NoSuchPortletException(portletContext.getId()); } ContainerPortletInfo info = (ContainerPortletInfo)portlet.getInfo(); ContainerPreferencesInfo prefs = info.getPreferences(); PropertyMap result = new SimplePropertyMap(); for (String key : keys) { ContainerPreferenceInfo pref = prefs.getContainerPreference(key); if (pref != null) { result.put(key, pref.getDefaultValue()); } } return result; }
public PropertyMap getProperties(PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException { PortletImpl portlet = portlets.get(portletContext.getId()); if (portlet == null) { throw new NoSuchPortletException(portletContext.getId()); } ContainerPortletInfo info = (ContainerPortletInfo)portlet.getInfo(); ContainerPreferencesInfo prefs = info.getPreferences(); PropertyMap result = new SimplePropertyMap(); for (String key : prefs.getKeys()) { ContainerPreferenceInfo pref = prefs.getContainerPreference(key); if (pref != null) { result.put(key, pref.getDefaultValue()); } } return result; }
throw new NoSuchPortletException(e, portletId);
throw new NoSuchPortletException(e, portletId);
throw new NoSuchPortletException(e, portletId);
throw new NoSuchPortletException(e, portletId);
if (portlet == null) throw new NoSuchPortletException("Portlet " + context.getPortletContext() + " not found", context.getPortletId());