@Extension public static class MongoDBKnowledgeBase.MongoDBKnowledgeBaseDescriptor extends KnowledgeBase.KnowledgeBaseDescriptor
MongoDBKnowledgeBase
.Constructor and Description |
---|
MongoDBKnowledgeBaseDescriptor() |
Modifier and Type | Method and Description |
---|---|
hudson.util.FormValidation |
doCheckDbName(String value)
Checks that the database name is not empty.
|
hudson.util.FormValidation |
doCheckHost(String value)
Checks that the host name is not empty.
|
hudson.util.FormValidation |
doCheckPort(String value)
Checks that the port number is not empty and is a number.
|
hudson.util.FormValidation |
doTestConnection(String host,
int port,
String dbName,
String userName,
String password,
boolean tls)
Tests if the provided parameters can connect to the Mongo database.
|
int |
getDefaultPort()
Convenience method for jelly.
|
String |
getDisplayName() |
all
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, 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
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<KnowledgeBase>
public int getDefaultPort()
public hudson.util.FormValidation doCheckHost(@QueryParameter(value="value") String value)
value
- the pattern to check.FormValidation.ok()
if everything is well.public hudson.util.FormValidation doCheckPort(@QueryParameter(value="value") String value)
value
- the port number to check.FormValidation.ok()
if everything is well.public hudson.util.FormValidation doCheckDbName(@QueryParameter(value="value") String value)
value
- the database name to check.FormValidation.ok()
if everything is well.public hudson.util.FormValidation doTestConnection(@QueryParameter(value="host") String host, @QueryParameter(value="port") int port, @QueryParameter(value="dbName") String dbName, @QueryParameter(value="userName") String userName, @QueryParameter(value="password") String password, @QueryParameter(value="tls") boolean tls)
host
- the host name.port
- the port.dbName
- the database name.userName
- the user name.password
- the password.tls
- the tls option.FormValidation.ok()
if can be done,
FormValidation.error(java.lang.String)
otherwise.Copyright © 2016–2020. All rights reserved.