Package org.apache.jetspeed.components.portletentity

Examples of org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent


                Parameter param = entry.getParameter(J2_ENTITY);
                if (param == null)
                {
                    PortletRegistry registryAccess =
                        (PortletRegistry)Jetspeed.getComponentManager().getComponent(PortletRegistry.class);
                    PortletEntityAccessComponent entityAccess =
                        (PortletEntityAccessComponent)Jetspeed.getComponentManager().getComponent(PortletEntityAccessComponent.class);
                   
                    PortletDefinition portletDef = registryAccess.getPortletDefinitionByUniqueName(registryKey);
                    if (null == portletDef)
                    {
                        log.error("Could not find portlet definition in registry for " + registryKey);
                        continue;
                    }
                    PortletEntity entity = entityAccess.newPortletEntityInstance(portletDef);
                    try
                    {
                        entityAccess.storePortletEntity(entity);                   
                        param = new PsmlParameter();
                        param.setName(J2_ENTITY);
                        param.setValue(entity.getId().toString());
                        entry.addParameter(param);
                        count++;                       
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent

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.