package jenkins.security; import hudson.remoting.Callable; import org.jenkinsci.remoting.RoleChecker; /** * Convenient {@link Callable} that are meant to run on the master (sent by agent/CLI/etc). * * @author Kohsuke Kawaguchi * @since 1.THU */ public abstract class SlaveToMasterCallable<V, T extends Throwable> implements Callable<V,T> { @Override public void checkRoles(RoleChecker checker) throws SecurityException { checker.check(this,Roles.MASTER); } private static final long serialVersionUID = 1L; }