All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.plexus.security.global.AllAccessResourceController Maven / Gradle / Ivy

There is a newer version: 1.0-alpha-3
Show newest version
package org.codehaus.plexus.security.global;

import org.codehaus.plexus.security.ResourceController;

/**
 * AllAccessResourceController is an implementation of 
 * ResourceController that gives access to any resource
 * for any credential for any Entity. 
 * 
 * @author Dan Diephouse
 * @since Jan 10, 2003
 */
public class AllAccessResourceController implements ResourceController
{
    public static String ROLE = AllAccessResourceController.class.getName();
    
    /** 
     * A pseudo implementation that returns true for every instance, granting
     * Entitys all access.
     * 
     * @see org.apache.fulcrum.jasf.ResourceAccessController#isAuthorized(Object, Object)
     */
    public boolean isAuthorized( Object entity, Object resource )
    {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy