Package hudson.model
Class AutoCompletionCandidates
java.lang.Object
hudson.model.AutoCompletionCandidates
- All Implemented Interfaces:
 org.kohsuke.stapler.HttpResponse
Data representation of the auto-completion candidates.
 
This object should be returned from your doAutoCompleteXYZ methods.
- Author:
 - Kohsuke Kawaguchi
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateResponse(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, Object o) Exposes the raw value, in case you want to modifyListdirectly.static <T extends Item>
AutoCompletionCandidatesofJobNames(Class<T> type, String value, ItemGroup container) Auto-completes possible job names.static <T extends Item>
AutoCompletionCandidatesofJobNames(Class<T> type, String value, Item self, ItemGroup container) Auto-completes possible job names.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kohsuke.stapler.HttpResponse
generateResponse 
- 
Constructor Details
- 
AutoCompletionCandidates
public AutoCompletionCandidates() 
 - 
 - 
Method Details
- 
add
 - 
add
 - 
getValues
Exposes the raw value, in case you want to modifyListdirectly.- Since:
 - 1.402
 
 - 
generateResponse
public void generateResponse(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, Object o) throws IOException, jakarta.servlet.ServletException - Specified by:
 generateResponsein interfaceorg.kohsuke.stapler.HttpResponse- Throws:
 IOExceptionjakarta.servlet.ServletException
 - 
ofJobNames
public static <T extends Item> AutoCompletionCandidates ofJobNames(Class<T> type, String value, @CheckForNull Item self, ItemGroup container) Auto-completes possible job names.- Parameters:
 type- Limit the auto-completion to the subtype of this type.value- The value the user has typed in. Matched as a prefix.self- The contextual item for which the auto-completion is provided to. For example, if you are configuring a job, this is the job being configured.container- The nearby contextualItemGroupto resolve relative job names from.- Since:
 - 1.489
 
 - 
ofJobNames
public static <T extends Item> AutoCompletionCandidates ofJobNames(Class<T> type, String value, ItemGroup container) Auto-completes possible job names.- Parameters:
 type- Limit the auto-completion to the subtype of this type.value- The value the user has typed in. Matched as a prefix.container- The nearby contextualItemGroupto resolve relative job names from.- Since:
 - 1.553
 
 
 -