Package hudson.search
Class SuggestedItem
java.lang.Object
hudson.search.SuggestedItem
One item of a search result.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSuggestedItem
(SearchItem top) SuggestedItem
(SuggestedItem parent, SearchItem item) -
Method Summary
Modifier and TypeMethodDescriptionstatic SuggestedItem
build
(SearchableModelObject searchContext, SearchItem si) Given a SearchItem, builds a SuggestedItem hierarchy by looking up parent items (if applicable).getPath()
getUrl()
Gets the URL to this item.
-
Field Details
-
item
-
-
Constructor Details
-
SuggestedItem
-
SuggestedItem
-
-
Method Details
-
getPath
-
getUrl
Gets the URL to this item.- Returns:
- URL that starts with '/' but doesn't end with '/'.
The path is the combined path from the
SearchIndex
where the search started to the final item found. Thus to convert to the actual URL, the caller would need to prepend the URL of the object where the search started.
-
build
Given a SearchItem, builds a SuggestedItem hierarchy by looking up parent items (if applicable). This allows search results for items not contained within the sameItemGroup
to be distinguished. If provided searchContext is null, results will be interpreted from the rootJenkins
object- Since:
- 1.527
-