org.codehaus.plexus.security.global.AllAccessResourceController Maven / Gradle / Ivy
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
* Entity
s all access.
*
* @see org.apache.fulcrum.jasf.ResourceAccessController#isAuthorized(Object, Object)
*/
public boolean isAuthorized( Object entity, Object resource )
{
return true;
}
}