hudson.model
Interface DescriptorByNameOwner

All Superinterfaces:
ModelObject
All Known Implementing Classes:
AbstractBuild, AbstractCIBase, AbstractItem, AbstractMavenBuild, AbstractMavenProject, AbstractProject, AbstractTopLevelItem, Build, FreeStyleBuild, FreeStyleProject, Hudson, Jenkins, Job, MatrixBuild, MatrixConfiguration, MatrixProject, MatrixRun, MavenBuild, MavenModule, MavenModuleSet, MavenModuleSetBuild, MockFolder, Project, Run, User, ViewJob

public interface DescriptorByNameOwner
extends ModelObject

Adds getDescriptorByName(String) to bind Descriptors to URL. Binding them at some specific object (instead of Jenkins), allows Descriptors 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
 Descriptor getDescriptorByName(String id)
          Exposes all Descriptors by its name to URL.
 
Methods inherited from interface hudson.model.ModelObject
getDisplayName
 

Method Detail

getDescriptorByName

Descriptor getDescriptorByName(String id)
Exposes all Descriptors by its name to URL.

Implementation should always delegate to Jenkins.getDescriptorByName(String).

Parameters:
id - Either Descriptor.getId() (recommended) or the short name.


Copyright © 2004-2013. All Rights Reserved.