Package jenkins.security.stapler
Class StaticRoutingDecisionProvider
- java.lang.Object
-
- jenkins.security.stapler.RoutingDecisionProvider
-
- jenkins.security.stapler.StaticRoutingDecisionProvider
-
- All Implemented Interfaces:
ExtensionPoint
,Saveable
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public class StaticRoutingDecisionProvider extends RoutingDecisionProvider implements Saveable
Fill the list of getter methods that are whitelisted for Stapler Each item in the set are formatted to correspond exactly to whatFunction.getDisplayName()
returns
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
WHITELIST_PATH
Allow script console access
-
Constructor Summary
Constructors Constructor Description StaticRoutingDecisionProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StaticRoutingDecisionProvider
add(String signature)
StaticRoutingDecisionProvider
addBlacklistSignature(String signature)
jenkins.security.stapler.RoutingDecisionProvider.Decision
decide(String signature)
static StaticRoutingDecisionProvider
get()
Return the singleton instance of this class, typically for script console usevoid
reload()
StaticRoutingDecisionProvider
remove(String signature)
StaticRoutingDecisionProvider
removeBlacklistSignature(String signature)
void
save()
Saves the configuration info to the disk.
-
-
-
Field Detail
-
WHITELIST_PATH
public static String WHITELIST_PATH
Allow script console access
-
-
Method Detail
-
get
public static StaticRoutingDecisionProvider get()
Return the singleton instance of this class, typically for script console use
-
decide
@NonNull public jenkins.security.stapler.RoutingDecisionProvider.Decision decide(@NonNull String signature)
- Specified by:
decide
in classRoutingDecisionProvider
- See Also:
Function.getSignature()
,FieldRef.getSignature()
-
reload
public void reload()
-
add
public StaticRoutingDecisionProvider add(@NonNull String signature)
-
addBlacklistSignature
public StaticRoutingDecisionProvider addBlacklistSignature(@NonNull String signature)
-
remove
public StaticRoutingDecisionProvider remove(@NonNull String signature)
-
removeBlacklistSignature
public StaticRoutingDecisionProvider removeBlacklistSignature(@NonNull String signature)
-
-