|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.Descriptor<KnowledgeBase>
com.sonyericsson.jenkins.plugins.bfa.db.KnowledgeBase.KnowledgeBaseDescriptor
com.sonyericsson.jenkins.plugins.bfa.db.MongoDBKnowledgeBase.MongoDBKnowledgeBaseDescriptor
@Extension public static class MongoDBKnowledgeBase.MongoDBKnowledgeBaseDescriptor
Descriptor for LocalFileKnowledgeBase
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hudson.model.Descriptor |
---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self |
Field Summary |
---|
Fields inherited from class hudson.model.Descriptor |
---|
clazz |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
MongoDBKnowledgeBase.MongoDBKnowledgeBaseDescriptor()
|
Method Summary | |
---|---|
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)
Tests if the provided parameters can connect to the Mongo database. |
int |
getDefaultPort()
Convenience method for jelly. |
String |
getDisplayName()
|
Methods inherited from class com.sonyericsson.jenkins.plugins.bfa.db.KnowledgeBase.KnowledgeBaseDescriptor |
---|
all |
Methods inherited from class hudson.model.Descriptor |
---|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, 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 |
---|
public MongoDBKnowledgeBase.MongoDBKnowledgeBaseDescriptor()
Method Detail |
---|
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)
host
- the host name.port
- the port.dbName
- the database name.userName
- the user name.password
- the password.
FormValidation.ok()
if can be done,
FormValidation.error(java.lang.String)
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |