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

hudson.security.AccessControlled Maven / Gradle / Ivy

package hudson.security;

/**
 * Object that has an {@link ACL}
 *
 * @since 1.220
 * @see http://hudson.gotdns.com/wiki/display/HUDSON/Making+your+plugin+behave+in+secured+Hudson
 */
public interface AccessControlled {
    /**
     * Obtains the ACL associated with this object.
     *
     * @return never null.
     */
    ACL getACL();

    /**
     * Convenient short-cut for {@code getACL().checkPermission(permission)}
     */
    void checkPermission(Permission permission);

    /**
     * Convenient short-cut for {@code getACL().hasPermission(permission)}
     */
    boolean hasPermission(Permission permission);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy