Package org.apache.jetspeed.components.portletregistry

Examples of org.apache.jetspeed.components.portletregistry.PortletRegistry


     *   
     * @param uniqueId The uniquely identifying portlet id in the registry
     */
    public PortletDefinition getPortletDefinition(String uniqueId)
    {
        PortletRegistry registry =
            (PortletRegistry) Jetspeed.getComponentManager().getComponent(PortletRegistry.class);
        return registry.getPortletDefinitionByIdentifier(uniqueId);
    }
View Full Code Here


        try
        {
            System.out.println("Ready to run PAM implementation: " + className);
            System.out.print("Supporting interfaces: Deployment");
            // Class clas = Class.forName(className);
            PortletRegistry portletRegistry = (PortletRegistry) engine.getComponentManager()
                    .getComponent(PortletRegistry.class);
            deployer = (Deployment) engine.getComponentManager().getComponent("PAM");
            if (deployer instanceof Registration)
            {               
                System.out.print(", Registration");
View Full Code Here

        return false;
    }
      
    private void refreshCustomConfigModePortletInstance() throws PortletException
    {
        PortletRegistry registry = (PortletRegistry) Jetspeed.getComponentManager().getComponent("portletRegistry");
        PortletFactory portletFactory = (PortletFactory) Jetspeed.getComponentManager().getComponent("portletFactory");
        ServletContext portalAppContext = ((ServletConfig) Jetspeed.getComponentManager().getComponent("ServletConfig")).getServletContext();
       
        PortletDefinition portletDef = registry.getPortletDefinitionByUniqueName(this.customConfigModePortletUniqueName, true);
        PortletApplication portletApp = portletDef.getApplication();
        ServletContext portletAppContext = portalAppContext.getContext(portletApp.getContextPath());
       
        this.customConfigModePortletInstance = portletFactory.getPortletInstance(portletAppContext, portletDef, false);
    }
View Full Code Here

public class MockPortletRegistryFactory
{
    public static PortletRegistry createMockPortletRegistry()
    {
        Mock portletRegistryMock;
        PortletRegistry portletRegistry;
        Mock portletDefMock;
        PortletDefinition portletDef;

        Mock portletSizesParamMock;
        InitParam portletSizesParam;
View Full Code Here

    }
   
    private PortletRegistry createMockPortletRegistry()
    {
        Mock portletRegistryMock;
        PortletRegistry portletRegistry;
        Mock portletDefMock;
        PortletDefinition portletDef;

        Mock portletSizesParamMock;
        InitParam portletSizesParam;
View Full Code Here

        return false;
    }
      
    private PortletInstance getPortletInstance(String portletUniqueName) throws PortletException
    {
        PortletRegistry registry = (PortletRegistry) Jetspeed.getComponentManager().getComponent("portletRegistry");
        PortletFactory portletFactory = (PortletFactory) Jetspeed.getComponentManager().getComponent("portletFactory");
        ServletContext portalAppContext = ((ServletConfig) Jetspeed.getComponentManager().getComponent("ServletConfig")).getServletContext();
       
        PortletDefinition portletDef = registry.getPortletDefinitionByUniqueName(portletUniqueName, true);
        PortletApplication portletApp = portletDef.getApplication();
        ServletContext portletAppContext = portalAppContext.getContext(portletApp.getContextPath());
       
        return portletFactory.getPortletInstance(portletAppContext, portletDef, false);
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.components.portletregistry.PortletRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.