Package org.apache.jetspeed.om.registry

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


     * @return boolean true if the user has sufficient privilege.
     */
    public boolean checkPermission(JetspeedUser user, Entry entry, String action, String owner)
    {
        String portletName = entry.getParent();
        RegistryEntry regEntry = (RegistryEntry)Registry.getEntry(Registry.PORTLET, portletName);
        if (regEntry==null)
        {
            return checkDefaultPermission(user, action);
        }
        return checkPermission(user, regEntry, action);
View Full Code Here


        {
            return checkPermission( user, securityRef, action, owner);
        }

        String portletName = portlet.getName();
        RegistryEntry registryEntry = null;
        // Don't query registry if portlet is a set
        if (!(portlet instanceof PortletSet))
        {
            registryEntry = (RegistryEntry) Registry.getEntry(Registry.PORTLET, portletName);
        }           
View Full Code Here

        while(i.hasNext() && (count < next) )
        {
            String name = (String)i.next();
           
            RegistryEntry regEntry = Registry.getEntry(regName,name);
   
            if ( (regEntry!=null) && (!regEntry.isHidden()) )
            {
                if (count >= start)
                {
                    entries.add(regEntry);
                }
View Full Code Here

    /** @see Registry#getEntry */
    public RegistryEntry getEntry( String name ) throws InvalidEntryException
    {

        RegistryEntry entry = null;

        try
        {
            if (idx == null)
            {
View Full Code Here

    {
        Map map = new TreeMap();

        for (int i=0; i < entries.size(); i++)
        {
            RegistryEntry entry = (RegistryEntry)entries.get(i);
            map.put( entry.getName(), new Integer(i));
        }

        this.idx = map;
    }
View Full Code Here

    /** @see Registry#getEntry */
    public RegistryEntry getEntry( String name ) throws InvalidEntryException
    {

        RegistryEntry entry = null;

        if (name != null)
        {
            entry = (RegistryEntry)this.entries.get( name ) ;
        }
View Full Code Here

        if (name == null)
        {
            return;
    }

        RegistryEntry entry = (RegistryEntry)this.entries.get( name ) ;

        if (entry == null)
        {
            return;
    }
View Full Code Here

    /** @see Registry#getEntry */
    public RegistryEntry getEntry( String name ) throws InvalidEntryException
    {

        RegistryEntry entry = null;

        if (name != null)
        {
            entry = (RegistryEntry)this.entries.get( name ) ;
        }
View Full Code Here

        List list = new ArrayList();

        Iterator i = Registry.get(regName).listEntryNames();
        while (i.hasNext())
        {
            RegistryEntry entry = Registry.getEntry(regName, (String) i.next());

            if (JetspeedSecurity
                .checkPermission(
                    (JetspeedUser) data.getUser(),
                    new PortalResource(entry),
                    JetspeedSecurity.PERMISSION_CUSTOMIZE)
                && (!entry.isHidden()))
            {
                list.add(entry);
            }
        }
View Full Code Here

   
            while(i.hasNext())
            {
                String name = (String)i.next();
               
                RegistryEntry regEntry = Registry.getEntry(regName,name);
       
                if ( (regEntry!=null) && (!regEntry.isHidden()) )
                {
                    regEntries.add(regEntry);
                }
            }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.registry.RegistryEntry

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.