org.jenkins.plugins.audit2db
Interface DbAuditPublisherDescriptor
- All Known Implementing Classes:
- DbAuditPublisherDescriptorImpl
public interface DbAuditPublisherDescriptor
getUseJndi
boolean getUseJndi()
- Returns:
true
if using a JNDI datasource, or false
for JDBC.
setUseJndi
void setUseJndi(boolean useJndi)
- Parameters:
useJndi
- set to true
to use a JNDI datasource, or false
for JDBC.
getJndiName
String getJndiName()
- Returns:
- the name of the JNDI datasource.
setJndiName
void setJndiName(String jndiName)
- Parameters:
jndiName
- true
if using a JNDI datasource, or false
for JDBC.
getJdbcDriver
String getJdbcDriver()
- Returns:
- the name of the JDBC driver class.
setJdbcDriver
void setJdbcDriver(String jdbcDriver)
- Parameters:
jdbcDriver
- the name of the JDBC driver class.
getJdbcUrl
String getJdbcUrl()
- Returns:
- the JDBC URL.
setJdbcUrl
void setJdbcUrl(String jdbcUrl)
- Parameters:
jdbcUrl
- the JDBC URL.
getJndiUser
String getJndiUser()
- Returns:
- the user for the JNDI datasource.
setJndiUser
void setJndiUser(String username)
- Parameters:
username
- the user for the JNDI datasource.
setJndiPassword
void setJndiPassword(String password)
- Parameters:
password
- the password for the JNDI datasource.
getJdbcUser
String getJdbcUser()
- Returns:
- the user for the JDBC datasource.
setJdbcUser
void setJdbcUser(String username)
- Parameters:
username
- the user for the JDBC datasource.
getJdbcPassword
String getJdbcPassword()
- Returns:
- the password for the specified user.
setJdbcPassword
void setJdbcPassword(String password)
- Parameters:
password
- the password for the JDBC datasource.
doTestJdbcConnection
hudson.util.FormValidation doTestJdbcConnection(@QueryParameter(value="audit2db.jdbcDriver")
String jdbcDriver,
@QueryParameter(value="audit2db.jdbcUrl")
String jdbcUrl,
@QueryParameter(value="audit2db.jdbcUser")
String username,
@QueryParameter(value="audit2db.jdbcPassword")
String password)
throws IOException,
javax.servlet.ServletException
- Checks the JDBC connection.
- Parameters:
jdbcDriver
- the JDBC driver class.jdbcUrl
- the JDBC URL.username
- the JDBC user.password
- the JDBC password.
- Returns:
- the validation result.
- Throws:
IOException
- if a problem occurs while connecting to the datasource.
javax.servlet.ServletException
- if a problem occurs while processing the request.
doGenerateDdl
hudson.util.FormValidation doGenerateDdl(@QueryParameter(value="audit2db.jdbcDriver")
String jdbcDriver,
@QueryParameter(value="audit2db.jdbcUrl")
String jdbcUrl,
@QueryParameter(value="audit2db.jdbcUser")
String username,
@QueryParameter(value="audit2db.jdbcPassword")
String password)
throws IOException,
javax.servlet.ServletException
- Generates the DDL.
- Parameters:
jdbcDriver
- the JDBC driver class.jdbcUrl
- the JDBC URL.username
- the JDBC user.password
- the JDBC password.
- Returns:
- the validation result.
- Throws:
IOException
- if a problem occurs while connecting to the datasource.
javax.servlet.ServletException
- if a problem occurs while processing the request.
Copyright © 2004-2013. All Rights Reserved.