Package hudson.model
Interface DescriptorByNameOwner
-
- All Superinterfaces:
ModelObject
- All Known Implementing Classes:
AbstractBuild
,AbstractCIBase
,AbstractCloudComputer
,AbstractItem
,AbstractProject
,AbstractTopLevelItem
,AllView
,Build
,Computer
,FreeStyleBuild
,FreeStyleProject
,Hudson
,Hudson.MasterComputer
,Jenkins
,Jenkins.MasterComputer
,Job
,ListView
,MyView
,Project
,ProxyView
,Run
,SlaveComputer
,User
,View
,ViewJob
public interface DescriptorByNameOwner extends ModelObject
AddsgetDescriptorByName(String)
to bindDescriptor
s to URL. Binding them at some specific object (instead ofJenkins
), allowsDescriptor
s to perform context-specific form field validation.Descriptor.getCheckUrl(String)
finds an ancestor with this interface and generates URLs against it.- Since:
- 1.294
- Author:
- Kohsuke Kawaguchi
- See Also:
Descriptor.getCheckUrl(String)
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Descriptor
getDescriptorByName(String id)
Exposes allDescriptor
s by its name to URL.-
Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
-
-
-
Method Detail
-
getDescriptorByName
default Descriptor getDescriptorByName(String id)
Exposes allDescriptor
s by its name to URL.Implementation should always delegate to
Jenkins.getDescriptorByName(String)
.- Parameters:
id
- EitherDescriptor.getId()
(recommended) or the short name.
-
-