@Extension
public static class Branch.TransientJobActionsFactoryImpl
extends jenkins.model.TransientActionFactory<hudson.model.Job>
Branch.getActions()
are always present in the Actionable.getAllActions()
.
NOTE: We need to use a transient action factory as AbstractProject.getActions()
is unmodifiable
and consequently Actionable.addAction(Action)
will always fail.Constructor and Description |
---|
TransientJobActionsFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Collection<? extends hudson.model.Action> |
createFor(hudson.model.Job target) |
Class<hudson.model.Job> |
type() |
public Class<hudson.model.Job> type()
type
in class jenkins.model.TransientActionFactory<hudson.model.Job>
@Nonnull public Collection<? extends hudson.model.Action> createFor(@Nonnull hudson.model.Job target)
createFor
in class jenkins.model.TransientActionFactory<hudson.model.Job>
Copyright © 2016–2017. All rights reserved.