Package io.jenkins.plugins.casc.core
Class UnsecuredAuthorizationStrategyConfigurator
- java.lang.Object
-
- io.jenkins.plugins.casc.BaseConfigurator<AuthorizationStrategy.Unsecured>
-
- io.jenkins.plugins.casc.core.UnsecuredAuthorizationStrategyConfigurator
-
- All Implemented Interfaces:
Configurator<AuthorizationStrategy.Unsecured>
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class UnsecuredAuthorizationStrategyConfigurator extends BaseConfigurator<AuthorizationStrategy.Unsecured>
HandlesAuthorizationStrategy.Unsecured
that requires a special treatment due to its singleton semantics.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.jenkins.plugins.casc.BaseConfigurator
BaseConfigurator.TypePair
-
-
Constructor Summary
Constructors Constructor Description UnsecuredAuthorizationStrategyConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CNode
describe(AuthorizationStrategy.Unsecured instance, ConfigurationContext context)
Describe a component as a Configuration NodesCNode
to be exported as yaml.String
getDisplayName()
Class
getImplementedAPI()
Class<AuthorizationStrategy.Unsecured>
getTarget()
Target type this configurator can handle.protected AuthorizationStrategy.Unsecured
instance(Mapping mapping, ConfigurationContext context)
Build or identify the target component this configurator has to handle based on the provided configuration node.-
Methods inherited from class io.jenkins.plugins.casc.BaseConfigurator
check, compare, configure, configure, createAttribute, describe, equals, exclusions, handleUnknown, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.jenkins.plugins.casc.Configurator
canConfigure, describeStructure, getAttributes, getConfigurators, getName, getNames
-
-
-
-
Method Detail
-
getTarget
public Class<AuthorizationStrategy.Unsecured> getTarget()
Description copied from interface:Configurator
Target type this configurator can handle.
-
getImplementedAPI
@NonNull public Class getImplementedAPI()
- Returns:
- The API implemented by target type, i.e. implemented
ExtensionPoint
for components to implement some jenkins APIs, or raw type for others.
-
getDisplayName
public String getDisplayName()
- Returns:
- Human friendly display name for this component, used in generated documentation.
-
instance
protected AuthorizationStrategy.Unsecured instance(Mapping mapping, ConfigurationContext context)
Description copied from class:BaseConfigurator
Build or identify the target component this configurator has to handle based on the provided configuration node.- Specified by:
instance
in classBaseConfigurator<AuthorizationStrategy.Unsecured>
- Parameters:
mapping
- configuration for target component. Implementation may consume some entries to create a fresh new instance.- Returns:
- instance to be configured, but not yet fully configured, see
BaseConfigurator.configure(Mapping, Object, boolean, ConfigurationContext)
-
describe
@CheckForNull public CNode describe(AuthorizationStrategy.Unsecured instance, ConfigurationContext context)
Description copied from interface:Configurator
Describe a component as a Configuration NodesCNode
to be exported as yaml. Only export attributes which are not set to default value.
-
-