Search in sources :

Example 1 with DriverPortletConfig

use of org.apache.pluto.container.driver.DriverPortletConfig in project uPortal by Jasig.

the class LocalPortletContextManager method getPortlet.

@Override
public PortletDefinition getPortlet(String applicationName, String portletName) throws PortletContainerException {
    DriverPortletConfig ipc = portletConfigs.get(applicationName + "/" + portletName);
    if (ipc != null) {
        return ipc.getPortletDefinition();
    }
    String msg = "Unable to retrieve portlet: '" + applicationName + "/" + portletName + "'";
    logger.warn(msg);
    throw new PortletContainerException(msg);
}
Also used : PortletContainerException(org.apache.pluto.container.PortletContainerException) DriverPortletConfig(org.apache.pluto.container.driver.DriverPortletConfig)

Example 2 with DriverPortletConfig

use of org.apache.pluto.container.driver.DriverPortletConfig in project uPortal by Jasig.

the class LocalPortletContextManager method getPortletConfig.

@Override
public DriverPortletConfig getPortletConfig(String applicationName, String portletName) throws PortletContainerException {
    DriverPortletConfig ipc = portletConfigs.get(applicationName + "/" + portletName);
    if (ipc != null) {
        return ipc;
    }
    String msg = "Unable to locate portlet config [applicationName=" + applicationName + "]/[" + portletName + "].";
    logger.warn(msg);
    throw new PortletContainerException(msg);
}
Also used : PortletContainerException(org.apache.pluto.container.PortletContainerException) DriverPortletConfig(org.apache.pluto.container.driver.DriverPortletConfig)

Aggregations

PortletContainerException (org.apache.pluto.container.PortletContainerException)2 DriverPortletConfig (org.apache.pluto.container.driver.DriverPortletConfig)2