|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hardtokenmgmt.uds.sql.BaseCustomUserDataSource
org.hardtokenmgmt.uds.sql.SQLUserDataSource
public class SQLUserDataSource
A General SQL User Data Source for use with htmf.
| Field Summary | |
|---|---|
static java.lang.String |
DBDRIVER
Class path to JDBC driver to use. |
static java.lang.String |
DBPASSWORD
Password used to connect to database. |
static java.lang.String |
DBURL
DB connection URL |
static java.lang.String |
DBUSERNAME
Username used to connect to database. |
static java.lang.String |
DEFAULT_SUPPORTREMOVE
|
static java.lang.String |
FETCHQUERY
Complete SQL query used to fetch user data from database. |
static java.lang.String |
NAMECOLUMNS
Setting defining how the full name should be fetched. |
static java.lang.String |
NAMECOLUMNS_FIRSTANDSURNAME
|
static java.lang.String |
NAMECOLUMNS_FIRSTMIDDLEANDSURNAME
|
static java.lang.String |
NAMECOLUMNS_FULLNAME
|
static java.lang.String |
REMOVEQUERY
Complete SQL used in "remove" queries, the call is called after a fetch query to make sure not more than one entry matches the search string. |
static java.lang.String |
REMOVESIZEQUERY
Complete SQL used to get the size in "remove" queries, the call is done if by remove user call have multiple match is false. |
static java.lang.String |
SUPPORTREMOVE
Boolean string indicating if remove user data should be supported. |
static java.lang.String |
TESTQUERY
complete test query string used for making sure the database is up and running example value is "select 1" but the actual query depends on database type. |
| Fields inherited from class org.hardtokenmgmt.uds.sql.BaseCustomUserDataSource |
|---|
ADDOMAIN, ADDSNTODN, ADDUIDTODN, BASEDN, DEFAULTCAID, DEFAULTCANAME, DEFAULTCERTIFICATEPROFILEID, DEFAULTCERTIFICATEPROFILENAME, DEFAULTENDENTITYPROFILEID, DEFAULTENDENTITYPROFILENAME, props |
| Constructor Summary | |
|---|---|
SQLUserDataSource()
|
|
| Method Summary | |
|---|---|
java.util.Collection<?> |
fetch(org.ejbca.core.model.log.Admin admin,
java.lang.String searchString)
|
boolean |
removeUserData(org.ejbca.core.model.log.Admin admin,
java.lang.String searchString,
boolean removeMultipleMatch)
|
void |
testConnection(org.ejbca.core.model.log.Admin admin)
|
| Methods inherited from class org.hardtokenmgmt.uds.sql.BaseCustomUserDataSource |
|---|
getBooleanSetting, getCaId, getCertProfileId, getEndEntityProfileId, getIntSetting, getLocator, getSetting, getUserDataSourceVO, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DBDRIVER
public static final java.lang.String DBURL
public static final java.lang.String DBUSERNAME
public static final java.lang.String DBPASSWORD
public static final java.lang.String TESTQUERY
public static final java.lang.String FETCHQUERY
public static final java.lang.String NAMECOLUMNS
public static final java.lang.String NAMECOLUMNS_FULLNAME
public static final java.lang.String NAMECOLUMNS_FIRSTANDSURNAME
public static final java.lang.String NAMECOLUMNS_FIRSTMIDDLEANDSURNAME
public static final java.lang.String SUPPORTREMOVE
public static final java.lang.String DEFAULT_SUPPORTREMOVE
public static final java.lang.String REMOVESIZEQUERY
public static final java.lang.String REMOVEQUERY
| Constructor Detail |
|---|
public SQLUserDataSource()
| Method Detail |
|---|
public java.util.Collection<?> fetch(org.ejbca.core.model.log.Admin admin,
java.lang.String searchString)
throws org.ejbca.core.model.ra.userdatasource.UserDataSourceException
org.ejbca.core.model.ra.userdatasource.UserDataSourceException
public boolean removeUserData(org.ejbca.core.model.log.Admin admin,
java.lang.String searchString,
boolean removeMultipleMatch)
throws org.ejbca.core.model.ra.userdatasource.MultipleMatchException,
org.ejbca.core.model.ra.userdatasource.UserDataSourceException
org.ejbca.core.model.ra.userdatasource.MultipleMatchException
org.ejbca.core.model.ra.userdatasource.UserDataSourceException
public void testConnection(org.ejbca.core.model.log.Admin admin)
throws org.ejbca.core.model.ra.userdatasource.UserDataSourceConnectionException
org.ejbca.core.model.ra.userdatasource.UserDataSourceConnectionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||