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

org.codehaus.plexus.security.global.NoAccessResourceController 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;

/**
 * NoAccessResourceController is an implementation of
 * ResourceController that does not give access to any
 * resource for any Entity.
 * 
 * @author Dan Diephouse
 * @since Jan 10, 2003
 */
public class NoAccessResourceController implements ResourceController
{

    /**
     * A pseudo implementation that returns false for every instance, denying
     * any Entity access to any resource.
     * 
     * @see org.apache.fulcrum.jasf.ResourceAccessController#isAuthorized(Object, Object)
     */
    public boolean isAuthorized( Object entity, Object resource )
    {
        return false;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy