org.codehaus.plexus.security.global.NoAccessResourceController Maven / Gradle / Ivy
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;
}
}