Package jenkins.model.menu.action
Class DeleteAction.RunFactory
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
DeleteAction
@Extension(ordinal=80.0)
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public static final class DeleteAction.RunFactory
extends TransientActionFactory<Run>
Factory that contributes a
DeleteAction to every Run the current
user has Run.DELETE permission on when the new run page experimental flag
is enabled.-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.model.TransientActionFactory
TransientActionFactory.CacheNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
Constructor Details
-
RunFactory
public RunFactory()
-
-
Method Details
-
type
Description copied from class:TransientActionFactoryThe type of object this factory cares about. Declared separately, rather than by havingTransientActionFactory.createFor(T)do a check-cast, so that method bodies are not loaded until actually needed.- Specified by:
typein classTransientActionFactory<Run>- Returns:
- the type of
TransientActionFactory
-
createFor
Description copied from class:TransientActionFactoryCreates actions for a given object. This may be called frequently for the same object, so if your implementation is expensive, do your own caching.- Specified by:
createForin classTransientActionFactory<Run>- Parameters:
target- an actionable object- Returns:
- a possible empty set of actions (typically either using
Collections.emptySet()orCollections.singleton(T))
-