Examples of PortletEntry


Examples of org.apache.jetspeed.om.registry.PortletEntry

        Collection c = new ArrayList();

        for (Iterator i = Registry.get(Registry.PORTLET).listEntryNames(); i.hasNext();)
        {
            PortletEntry entry = (PortletEntry) Registry.getEntry(Registry.PORTLET, (String) i.next());
            if (!entry.getType().equals(PortletEntry.TYPE_ABSTRACT) && !entry.isHidden())
            {
                c.add(entry);
                //System.out.println("Will index [" + entry.getTitle() + "]");
            }
        }
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

                System.out.println("Portlet: Loading cache for " + registryName);
               
                Iterator extent = PortletDbEntryPeer.fetchExtent().iterator();               
                while (extent.hasNext())
                {
                    PortletEntry pe = (PortletEntry)extent.next();
                    System.out.println("Portlet: Loading cache for " + pe.getName());
                    if (!local.hasEntry(pe.getName()))
                    {
                        local.addLocalEntry((RegistryEntry)pe);
                    }
                }
                System.out.println("Portlet: done Loading cache for " + registryName);
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

                registry.addLocalEntry((RegistryEntry)se);
            }
        }
        else if (entry instanceof PortletEntry)
        {
            PortletEntry pe = (PortletEntry)entry;
           
            PortletDbEntryPeer.storePortletEntry(pe);
            pe = PortletDbEntryPeer.lookupPortletEntry(pe.getName());       
            if (registry.hasEntry(entry.getName()))
            {
                registry.setLocalEntry((RegistryEntry)pe);
            }
            else
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

       
        try
        {

            // Retrieve registry entry
            PortletEntry entry = (PortletEntry) Registry.getEntry(Registry.PORTLET, portletName);

            // Verify security for the parameter
            boolean canAccess = JetspeedSecurity.checkPermission((JetspeedUser) data.getUser(),
                                                                 new PortalResource(entry),
                                                                 JetspeedSecurity.PERMISSION_CUSTOMIZE);
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

        try
        {
            if (portlet != null && parmName != null)
            {
                // Retrieve registry entry and its parameter
                PortletEntry entry = (PortletEntry) Registry.getEntry(Registry.PORTLET, portlet.getName());
                Parameter param = entry.getParameter(parmName);

                // Verify security for the parameter
                boolean canAccess = JetspeedSecurity.checkPermission((JetspeedUser) data.getUser(),
                                                                     new PortalResource(entry, param),
                                                                     JetspeedSecurity.PERMISSION_CUSTOMIZE);
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

     * @param id the PSML entry's portlet id    
     * @return an instanciated portlet corresponding to this entry
     */
    public Portlet getPortlet( Entry entry ) throws PortletException
    {
        PortletEntry regEntry = (PortletEntry)Registry.getEntry(Registry.PORTLET,
                                                                entry.getParent() );
        if (regEntry == null)
        {
            throw new PortletException("PortletFactory: unknown portlet entry in Registry: "+entry.getParent());
        }
       
        if (PortletEntry.TYPE_ABSTRACT.equals(regEntry.getType()))
        {
            throw new PortletException("PortletFactory: can't instanciate abstract registry entry: "+regEntry.getName());
        }
           
        PortletConfig pc = getPortletConfig(regEntry, entry.getId());

        // Set portlet config with values from PSML Entry
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

     * @param name the name of a portlet in the registry
     * @return an instanciated portlet corresponding to this entry
     */
    public Portlet getPortlet( String name, String id ) throws PortletException
    {
        PortletEntry regEntry = (PortletEntry)Registry.getEntry(Registry.PORTLET, name );

        if (regEntry == null)
        {
            throw new PortletException("PortletFactory: unknown portlet entry in Registry: "+name);
        }
       
        if (PortletEntry.TYPE_ABSTRACT.equals(regEntry.getType()))
        {
            throw new PortletException("PortletFactory: can't instanciate abstract registry entry: "+name);
        }
           
        PortletConfig pc = getPortletConfig(regEntry, id);
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

        }

        if ( entry.getParent() != null )
        {

            PortletEntry parent = (PortletEntry)Registry
                .getEntry( Registry.PORTLET, entry.getParent() );

            if (parent != null)
            {
                MetaData parentData = getMetaData( parent );
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

     * @return PortletEntry Parent of Entry
     * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
     */
    protected static PortletEntry getParentEntry(PortletEntry entry)
    {
        PortletEntry result = null;
        String parent = entry.getParent();
        if (parent != null)
        {
            result = (PortletEntry) Registry.getEntry(Registry.PORTLET, parent);
        }
View Full Code Here

Examples of org.apache.jetspeed.om.registry.PortletEntry

    protected String getClassname(PortletEntry entry)
    {
        String className = entry.getClassname();
        if (className == null)
        {
            PortletEntry parent = getParentEntry(entry);
            if (parent != null)
            {
              // We must walk up the hierarchy just to be safe
                className = getClassname(parent);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.