Class Snippetizer.LocalAction
java.lang.Object
org.jenkinsci.plugins.workflow.cps.Snippetizer
org.jenkinsci.plugins.workflow.cps.Snippetizer.LocalAction
- All Implemented Interfaces:
ExtensionPoint
,Action
,DescriptorByNameOwner
,ModelObject
,RootAction
- Enclosing class:
- Snippetizer
May be added to various contexts to offer the Pipeline Groovy link where it is appropriate.
To use, define a
TransientActionFactory
of some kind of Item
.
If the target AccessControlled.hasPermission(hudson.security.Permission)
Item.EXTENDED_READ
,
return one Snippetizer.LocalAction
. Otherwise return an empty set.-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
Snippetizer.LocalAction, Snippetizer.PerJobAdder, Snippetizer.QuasiDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
ACTION_URL, GENERATE_URL
-
Constructor Summary
-
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.cps.Snippetizer
doGenerateSnippet, getGlobalVariables, getItem, getQuasiDescriptors, getSnippetizerLinks, getUrlName, object2Groovy, object2Groovy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
-
Constructor Details
-
LocalAction
public LocalAction()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classSnippetizer
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- Overrides:
getIconFileName
in classSnippetizer
-