@Extension(ordinal=-100.0) public class AdminCallableWhitelist extends CallableWhitelist
Callable
s that are approved by the admins.
Smaller ordinal value allows other programmable CallableWhitelist
to accept/reject
Callable
s without bothering the admins. This impl should be used only for those
Callable
s that our program does not have any idea for.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
AdminCallableWhitelist() |
Modifier and Type | Method and Description |
---|---|
boolean |
isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject,
Collection<org.jenkinsci.remoting.Role> expected,
Object context)
Returns true if given
subject should be allowed to execute on the master even though
it came over channel from other JVMs. |
all
public boolean isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject, Collection<org.jenkinsci.remoting.Role> expected, Object context)
CallableWhitelist
subject
should be allowed to execute on the master even though
it came over channel from other JVMs.isWhitelisted
in class CallableWhitelist
subject
- See RoleChecker.check(RoleSensitive, Collection)
expected
- See RoleChecker.check(RoleSensitive, Collection)
context
- Parameter given to ChannelConfigurator.onChannelBuilding(ChannelBuilder, Object)
CallableWhitelist
is consulted
when this method returns true.
false to "-0" this subject. Other CallableWhitelist
s will be given a chance to
accept/reject this subject, and if no one accepts it, the subject will be rejected.Copyright © 2019. All rights reserved.