Package jenkins.model
Interface ModelObjectWithContextMenu
- All Superinterfaces:
ModelObject
- All Known Implementing Classes:
AbstractBuild,AbstractCloudComputer,AbstractCloudImpl,AbstractItem,AbstractProject,AbstractTopLevelItem,Actionable,Build,Cloud,Computer,FreeStyleBuild,FreeStyleProject,Hudson,Hudson.MasterComputer,Jenkins,Jenkins.MasterComputer,Job,Label,LabelAtom,LabelExpression,LabelExpression.And,LabelExpression.Binary,LabelExpression.Iff,LabelExpression.Implies,LabelExpression.Not,LabelExpression.Or,LabelExpression.Paren,ManageJenkinsAction,Project,Queue.BlockedItem,Queue.BuildableItem,Queue.Item,Queue.LeftItem,Queue.NotWaitingItem,Queue.WaitingItem,Run,SlaveComputer,User,ViewJob
ModelObject that has context menu in the breadcrumb.
When the user is visiting a particular page, all the ancestor objects that has ModelObject
appears in the breadcrumbs. Among those which that also implements ModelObjectWithContextMenu
shows the drop-down menu for providing quicker access to the actions to those objects.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classData object that represents the context menu.static interfaceAllows an action to decide whether it will be visible in a context menu.static classMenu item inModelObjectWithContextMenu.ContextMenustatic enum -
Method Summary
Modifier and TypeMethodDescriptiondoContextMenu(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) Generates the context menu.doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Deprecated.Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
Method Details
-
doContextMenu
default ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) throws Exception Generates the context menu. The typical implementation isreturn new ContextMenu().from(this,request,response);, which implements the default behaviour. SeeModelObjectWithContextMenu.ContextMenu.from(ModelObjectWithContextMenu, StaplerRequest2, StaplerResponse2)for more details of what it does. This should suit most implementations.- Throws:
Exception
-
doContextMenu
@Deprecated @StaplerNotDispatchable default ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception Deprecated.- Throws:
Exception
-
doContextMenu(StaplerRequest2, StaplerResponse2)