hudson.search
Interface SearchItem

All Known Subinterfaces:
BuildableItem, BuildableItemWithBuildWrappers, Item, SCMedItem, SearchableModelObject, TopLevelItem
All Known Implementing Classes:
AbstractBuild, AbstractCIBase, AbstractCloudComputer, AbstractCloudImpl, AbstractCloudSlave, AbstractItem, AbstractMavenBuild, AbstractMavenProject, AbstractModelObject, AbstractProject, AbstractScmTagAction, AbstractTopLevelItem, Actionable, AdministrativeError, AdministrativeMonitor, AllView, Api, Build, CaseResult, ClassResult, Cloud, Computer, ComputerSet, CrumbIssuer.RestrictedApi, DumbSlave, FreeStyleBuild, FreeStyleProject, Hudson, Hudson.MasterComputer, HudsonHomeDiskUsageMonitor, HudsonHomeDiskUsageMonitor.Solution, Jenkins, Jenkins.MasterComputer, Job, Label, LabelAtom, LabelExpression, LabelExpression.And, LabelExpression.Binary, LabelExpression.Iff, LabelExpression.Implies, LabelExpression.Not, LabelExpression.Or, LabelExpression.Paren, ListView, LocalPluginManager, LogRecorder, LogRecorderManager, MatrixBuild, MatrixConfiguration, MatrixProject, MatrixRun, MavenAbstractArtifactRecord, MavenAggregatedArtifactRecord, MavenArtifactRecord, MavenBuild, MavenModule, MavenModuleSet, MavenModuleSetBuild, MetaTabulatedResult, MockFolder, MonitorMarkedNodeOffline, MyView, Node, NullIdDescriptorMonitor, OldDataMonitor, PackageResult, PluginManager, PluginManager.PluginCycleDependenciesMonitor, PluginManager.PluginUpdateMonitor, PretendSlave, Project, ProxyView, Queue.BlockedItem, Queue.BuildableItem, Queue.Item, Queue.NotWaitingItem, Queue.WaitingItem, RekeySecretAdminMonitor, ReverseProxySetupMonitor, Run, SCMTrigger.AdministrativeMonitorImpl, SimpleCaseResult, Slave, SlaveComputer, TabulatedResult, TaskAction, TestObject, TestObject, TestPluginManager, TestResult, TestResult, TooManyJobsButNoView, TreeView, UpdateCenter, UpdateCenter.CoreUpdateMonitor, User, View, ViewJob, ZFSInstaller, ZFSInstaller.MigrationCompleteNotice, ZFSInstaller.MigrationFailedNotice

public interface SearchItem

Represents an item reachable from SearchIndex.

The act of searching in this package is really a traversal of a directed graph. And in that notion, this interface represents an edge, not a node. So it's possible for single entity (let's say Build) to have multiple SearchItems representing it (for example, a 'last successful build' search item and '#123' search item.)

Author:
Kohsuke Kawaguchi

Method Summary
 SearchIndex getSearchIndex()
          Returns the SearchIndex to further search sub items inside this item.
 String getSearchName()
          Name of this item.
 String getSearchUrl()
          Returns the URL of this item relative to the parent SearchItem.
 

Method Detail

getSearchName

String getSearchName()
Name of this item. This is matched against the query.


getSearchUrl

String getSearchUrl()
Returns the URL of this item relative to the parent SearchItem.

Returns:
URL like "foo" or "foo/bar". The path can end with '/'. The path that starts with '/' will be interpreted as the absolute path (within the context path of Hudson.)

getSearchIndex

SearchIndex getSearchIndex()
Returns the SearchIndex to further search sub items inside this item.

Returns:
SearchIndex.EMPTY if this is a leaf.
See Also:
SearchIndexBuilder


Copyright © 2004-2013. All Rights Reserved.