org.jenkinsci.plugins.lucene.search.config
Class SearchBackendConfiguration

java.lang.Object
  extended by hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
      extended by jenkins.model.GlobalConfiguration
          extended by org.jenkinsci.plugins.lucene.search.config.SearchBackendConfiguration
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<jenkins.model.GlobalConfiguration>, hudson.model.Saveable

@Extension
public class SearchBackendConfiguration
extends jenkins.model.GlobalConfiguration


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
SearchBackendConfiguration()
           
SearchBackendConfiguration(String solrUrl, String lucenePath, String searchBackend, String solrCollection)
           
SearchBackendConfiguration(URI solrUrl, File lucenePath, SearchBackendEngine searchBackend, String solrCollection)
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
           
 hudson.util.FormValidation doCheckLucenePath(String lucenePath)
           
 hudson.util.FormValidation doCheckSolrCollection(String solrCollection, String solrUrl)
           
 hudson.util.FormValidation doCheckSolrUrl(String solrUrl)
           
 hudson.util.ListBoxModel doFillSolrCollectionItems(String solrUrl)
           
 Map<String,Object> getConfig()
           
 String getLucenePath()
           
 String getSearchBackend()
           
 SearchBackendEngine getSearchBackendEngine()
           
 String getSolrCollection()
           
 String getSolrUrl()
           
 void setLucenePath(File lucenePath)
           
 void setSearchBackend(SearchBackendEngine searchBackend)
           
 void setSolrCollection(String solrCollection)
           
 void setSolrUrl(URI solrUrl)
           
 
Methods inherited from class jenkins.model.GlobalConfiguration
all, getCategory, getDescriptor, getDisplayName, getGlobalConfigPage
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchBackendConfiguration

@DataBoundConstructor
public SearchBackendConfiguration(String solrUrl,
                                                       String lucenePath,
                                                       String searchBackend,
                                                       String solrCollection)

SearchBackendConfiguration

public SearchBackendConfiguration(URI solrUrl,
                                  File lucenePath,
                                  SearchBackendEngine searchBackend,
                                  String solrCollection)

SearchBackendConfiguration

public SearchBackendConfiguration()
Method Detail

getSolrUrl

public String getSolrUrl()

setSolrUrl

public void setSolrUrl(URI solrUrl)

getLucenePath

public String getLucenePath()

setLucenePath

public void setLucenePath(File lucenePath)

getSearchBackend

public String getSearchBackend()

getSearchBackendEngine

public SearchBackendEngine getSearchBackendEngine()

setSearchBackend

public void setSearchBackend(SearchBackendEngine searchBackend)

doCheckLucenePath

public hudson.util.FormValidation doCheckLucenePath(@QueryParameter
                                                    String lucenePath)

doFillSolrCollectionItems

public hudson.util.ListBoxModel doFillSolrCollectionItems(@QueryParameter
                                                          String solrUrl)

doCheckSolrUrl

public hudson.util.FormValidation doCheckSolrUrl(@QueryParameter
                                                 String solrUrl)

doCheckSolrCollection

public hudson.util.FormValidation doCheckSolrCollection(@QueryParameter
                                                        String solrCollection,
                                                        @QueryParameter
                                                        String solrUrl)

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
                  throws hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
Throws:
hudson.model.Descriptor.FormException

getConfig

public Map<String,Object> getConfig()

getSolrCollection

public String getSolrCollection()

setSolrCollection

public void setSolrCollection(String solrCollection)


Copyright © 2004-2015. All Rights Reserved.