org.apache.geronimo.console.util
Class PortletManager

java.lang.Object
  extended by org.apache.geronimo.console.util.PortletManager

public class PortletManager
extends Object


Constructor Summary
PortletManager()
           
 
Method Summary
static void addGBeanToConfiguration(javax.portlet.PortletRequest request, Artifact configID, GBeanData gbean, boolean start)
          This methods adds a GBean to an existing configuration.
static JMSConnector createJMSConnector(javax.portlet.PortletRequest request, JMSManager manager, AbstractName containerName, String name, String protocol, String host, int port)
           
static ResourceAdapterModule[] getAdminObjectModules(javax.portlet.PortletRequest request, String[] ifaces)
           
static JCAAdminObject[] getAdminObjectsForRA(javax.portlet.PortletRequest request, ResourceAdapterModule module, String[] ifaces)
           
static Artifact getConfigurationFor(javax.portlet.PortletRequest request, AbstractName objectName)
           
static ConfigurationData[] getConfigurations(javax.portlet.PortletRequest request, ConfigurationModuleType type, boolean includeChildModules)
           
static String getConsoleFrameworkServletPath(HttpServletRequest request)
          Looks up the context prefix used by the portal, even if the thing running is in one of the portlets.
static J2EEDomain getCurrentDomain(javax.portlet.PortletRequest request)
           
static JVM getCurrentJVM(javax.portlet.PortletRequest request)
           
static J2EEServer getCurrentServer(javax.portlet.PortletRequest request)
           
static SystemLog getCurrentSystemLog(javax.portlet.PortletRequest request)
           
static DeploymentManager getDeploymentManager(javax.portlet.PortletRequest request)
           
static String getGBeanDescription(javax.portlet.PortletRequest request, AbstractName objectName)
           
static Object[] getGBeansImplementing(javax.portlet.PortletRequest request, Class iface)
           
static JCAResource[] getJCAResources(javax.portlet.PortletRequest request, ResourceAdapter adapter)
           
static JMSBroker getJMSBroker(javax.portlet.PortletRequest request, AbstractName brokerName)
           
static JMSConnector[] getJMSConnectors(javax.portlet.PortletRequest request, AbstractName managerName)
           
static JMSConnector[] getJMSConnectors(javax.portlet.PortletRequest request, AbstractName managerName, String protocol)
           
static JMSConnector[] getJMSConnectorsForContainer(javax.portlet.PortletRequest request, AbstractName managerName, AbstractName brokerName)
           
static JMSConnector[] getJMSConnectorsForContainer(javax.portlet.PortletRequest request, AbstractName managerName, AbstractName brokerName, String protocol)
           
static GeronimoManagedBean getManagedBean(javax.portlet.PortletRequest request, AbstractName name)
           
static GeronimoManagedBean[] getManagedBeans(javax.portlet.PortletRequest request, Class intrface)
           
static ManagementHelper getManagementHelper(HttpSession session)
           
static ManagementHelper getManagementHelper(javax.portlet.PortletRequest request)
           
static J2EEDeployedObject getModule(javax.portlet.PortletRequest request, Artifact configuration)
           
static AbstractName getNameFor(javax.portlet.PortletRequest request, Object component)
           
static NetworkConnector getNetworkConnector(javax.portlet.PortletRequest request, AbstractName connectorName)
           
static NetworkConnector[] getNetworkConnectors(javax.portlet.PortletRequest request, AbstractName managerName)
           
static NetworkConnector[] getNetworkConnectors(javax.portlet.PortletRequest request, AbstractName managerName, String protocol)
           
static NetworkConnector[] getNetworkConnectorsForContainer(javax.portlet.PortletRequest request, AbstractName managerName, AbstractName containerName, String protocol)
           
static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request, AbstractName resourceAdapterModuleName)
           
static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request, AbstractName resourceAdapterModuleName, String iface)
           
static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request, ResourceAdapterModule module)
           
static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request, ResourceAdapterModule module, String iface)
           
static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request, ResourceAdapterModule module, String[] iface)
           
static JCAManagedConnectionFactory[] getOutboundFactoriesOfType(javax.portlet.PortletRequest request, String iface)
           
static ResourceAdapterModule[] getOutboundRAModules(javax.portlet.PortletRequest request, String iface)
           
static ResourceAdapterModule[] getOutboundRAModules(javax.portlet.PortletRequest request, String[] iface)
           
static File getRepositoryEntry(javax.portlet.PortletRequest request, String repositoryURI)
           
static ResourceAdapter[] getResourceAdapters(javax.portlet.PortletRequest request, ResourceAdapterModule module)
           
static WebAccessLog getWebAccessLog(javax.portlet.PortletRequest request, AbstractName managerName, AbstractName containerName)
           
static WebContainer getWebContainer(javax.portlet.PortletRequest request, AbstractName containerName)
           
static WebManager getWebManager(javax.portlet.PortletRequest request, AbstractName managerName)
           
static WebManager[] getWebManagers(javax.portlet.PortletRequest request)
           
static void testLoginModule(javax.portlet.PortletRequest request, LoginModule module, Map options)
           
static Subject testLoginModule(javax.portlet.PortletRequest request, LoginModule module, Map options, String username, String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletManager

public PortletManager()
Method Detail

getDeploymentManager

public static DeploymentManager getDeploymentManager(javax.portlet.PortletRequest request)

getManagementHelper

public static ManagementHelper getManagementHelper(javax.portlet.PortletRequest request)

getManagementHelper

public static ManagementHelper getManagementHelper(HttpSession session)

getCurrentDomain

public static J2EEDomain getCurrentDomain(javax.portlet.PortletRequest request)

getCurrentServer

public static J2EEServer getCurrentServer(javax.portlet.PortletRequest request)

getCurrentJVM

public static JVM getCurrentJVM(javax.portlet.PortletRequest request)

testLoginModule

public static void testLoginModule(javax.portlet.PortletRequest request,
                                   LoginModule module,
                                   Map options)

testLoginModule

public static Subject testLoginModule(javax.portlet.PortletRequest request,
                                      LoginModule module,
                                      Map options,
                                      String username,
                                      String password)
                               throws LoginException
Throws:
LoginException

getOutboundRAModules

public static ResourceAdapterModule[] getOutboundRAModules(javax.portlet.PortletRequest request,
                                                           String iface)

getOutboundRAModules

public static ResourceAdapterModule[] getOutboundRAModules(javax.portlet.PortletRequest request,
                                                           String[] iface)

getAdminObjectModules

public static ResourceAdapterModule[] getAdminObjectModules(javax.portlet.PortletRequest request,
                                                            String[] ifaces)

getOutboundFactoriesOfType

public static JCAManagedConnectionFactory[] getOutboundFactoriesOfType(javax.portlet.PortletRequest request,
                                                                       String iface)

getOutboundFactoriesForRA

public static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request,
                                                                      AbstractName resourceAdapterModuleName)

getOutboundFactoriesForRA

public static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request,
                                                                      AbstractName resourceAdapterModuleName,
                                                                      String iface)

getOutboundFactoriesForRA

public static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request,
                                                                      ResourceAdapterModule module)

getOutboundFactoriesForRA

public static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request,
                                                                      ResourceAdapterModule module,
                                                                      String iface)

getOutboundFactoriesForRA

public static JCAManagedConnectionFactory[] getOutboundFactoriesForRA(javax.portlet.PortletRequest request,
                                                                      ResourceAdapterModule module,
                                                                      String[] iface)

getAdminObjectsForRA

public static JCAAdminObject[] getAdminObjectsForRA(javax.portlet.PortletRequest request,
                                                    ResourceAdapterModule module,
                                                    String[] ifaces)

getWebManagers

public static WebManager[] getWebManagers(javax.portlet.PortletRequest request)

getWebManager

public static WebManager getWebManager(javax.portlet.PortletRequest request,
                                       AbstractName managerName)

getWebAccessLog

public static WebAccessLog getWebAccessLog(javax.portlet.PortletRequest request,
                                           AbstractName managerName,
                                           AbstractName containerName)

getWebContainer

public static WebContainer getWebContainer(javax.portlet.PortletRequest request,
                                           AbstractName containerName)

getNetworkConnectors

public static NetworkConnector[] getNetworkConnectors(javax.portlet.PortletRequest request,
                                                      AbstractName managerName)

getNetworkConnectors

public static NetworkConnector[] getNetworkConnectors(javax.portlet.PortletRequest request,
                                                      AbstractName managerName,
                                                      String protocol)

getNetworkConnector

public static NetworkConnector getNetworkConnector(javax.portlet.PortletRequest request,
                                                   AbstractName connectorName)

getNetworkConnectorsForContainer

public static NetworkConnector[] getNetworkConnectorsForContainer(javax.portlet.PortletRequest request,
                                                                  AbstractName managerName,
                                                                  AbstractName containerName,
                                                                  String protocol)

getJMSBroker

public static JMSBroker getJMSBroker(javax.portlet.PortletRequest request,
                                     AbstractName brokerName)

createJMSConnector

public static JMSConnector createJMSConnector(javax.portlet.PortletRequest request,
                                              JMSManager manager,
                                              AbstractName containerName,
                                              String name,
                                              String protocol,
                                              String host,
                                              int port)

getJMSConnectors

public static JMSConnector[] getJMSConnectors(javax.portlet.PortletRequest request,
                                              AbstractName managerName)

getJMSConnectors

public static JMSConnector[] getJMSConnectors(javax.portlet.PortletRequest request,
                                              AbstractName managerName,
                                              String protocol)

getJMSConnectorsForContainer

public static JMSConnector[] getJMSConnectorsForContainer(javax.portlet.PortletRequest request,
                                                          AbstractName managerName,
                                                          AbstractName brokerName)

getJMSConnectorsForContainer

public static JMSConnector[] getJMSConnectorsForContainer(javax.portlet.PortletRequest request,
                                                          AbstractName managerName,
                                                          AbstractName brokerName,
                                                          String protocol)

getResourceAdapters

public static ResourceAdapter[] getResourceAdapters(javax.portlet.PortletRequest request,
                                                    ResourceAdapterModule module)

getJCAResources

public static JCAResource[] getJCAResources(javax.portlet.PortletRequest request,
                                            ResourceAdapter adapter)

getGBeanDescription

public static String getGBeanDescription(javax.portlet.PortletRequest request,
                                         AbstractName objectName)

getCurrentSystemLog

public static SystemLog getCurrentSystemLog(javax.portlet.PortletRequest request)

getManagedBeans

public static GeronimoManagedBean[] getManagedBeans(javax.portlet.PortletRequest request,
                                                    Class intrface)

getManagedBean

public static GeronimoManagedBean getManagedBean(javax.portlet.PortletRequest request,
                                                 AbstractName name)

getConfigurationFor

public static Artifact getConfigurationFor(javax.portlet.PortletRequest request,
                                           AbstractName objectName)

getNameFor

public static AbstractName getNameFor(javax.portlet.PortletRequest request,
                                      Object component)

getRepositoryEntry

public static File getRepositoryEntry(javax.portlet.PortletRequest request,
                                      String repositoryURI)

getModule

public static J2EEDeployedObject getModule(javax.portlet.PortletRequest request,
                                           Artifact configuration)

getConfigurations

public static ConfigurationData[] getConfigurations(javax.portlet.PortletRequest request,
                                                    ConfigurationModuleType type,
                                                    boolean includeChildModules)

getGBeansImplementing

public static Object[] getGBeansImplementing(javax.portlet.PortletRequest request,
                                             Class iface)

addGBeanToConfiguration

public static void addGBeanToConfiguration(javax.portlet.PortletRequest request,
                                           Artifact configID,
                                           GBeanData gbean,
                                           boolean start)
This methods adds a GBean to an existing configuration.

Parameters:
request - PortletRequest object to get hold of ManagementHelper
configID - The configuration to add the GBean to.
gbean - The data representing the GBean to add.
start - If true, the GBean should be started as part of this call.

getConsoleFrameworkServletPath

public static String getConsoleFrameworkServletPath(HttpServletRequest request)
Looks up the context prefix used by the portal, even if the thing running is in one of the portlets. We're kind of hacking our way there, but hey, it beats hardcoding.



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.