org.esupportail.cas.server.handlers.database
Class SearchDatabaseHandler

java.lang.Object
  extended by org.esupportail.cas.server.util.log.Debug
      extended by org.esupportail.cas.server.util.BasicHandler
          extended by org.esupportail.cas.server.util.RedundantHandler
              extended by org.esupportail.cas.server.handlers.database.DatabaseHandler
                  extended by org.esupportail.cas.server.handlers.database.QueryDatabaseHandler
                      extended by org.esupportail.cas.server.handlers.database.SearchDatabaseHandler

public final class SearchDatabaseHandler
extends QueryDatabaseHandler

This class implements a search database handler class. It is used by GenericHandler.

Author:
Pascal Aubry

Field Summary
 
Fields inherited from class org.esupportail.cas.server.handlers.database.QueryDatabaseHandler
SQL_LOGIN_TOKEN
 
Fields inherited from class org.esupportail.cas.server.util.BasicHandler
FAILED_CONTINUE, FAILED_STOP, SUCCEEDED
 
Constructor Summary
SearchDatabaseHandler(org.dom4j.Element handlerElement, java.lang.Boolean configDebug)
          Constructor.
 
Method Summary
protected  java.lang.String readSqlQueryFromConfig()
          Read the SQL query from the configuration (deduces it from other parameters).
 
Methods inherited from class org.esupportail.cas.server.handlers.database.QueryDatabaseHandler
getBindPassword, getBindUsername, getEncryption, getUserSqlQuery
 
Methods inherited from class org.esupportail.cas.server.util.RedundantHandler
addServers, authenticate, getServers
 
Methods inherited from class org.esupportail.cas.server.util.BasicHandler
checkConfigElement, getConfigElement, getConfigSubElementContent, hasConfigSubElement
 
Methods inherited from class org.esupportail.cas.server.util.log.Debug
checkClass, elementDebugValue, isDebug, setDebug, trace, trace, traceBegin, traceEnd, traceEnd, traceEnd, traceThrow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchDatabaseHandler

public SearchDatabaseHandler(org.dom4j.Element handlerElement,
                             java.lang.Boolean configDebug)
                      throws java.lang.Exception
Constructor.

Parameters:
handlerElement - the XML element that declares the handler in the configuration file
configDebug - debugging mode of the global configuration
Throws:
java.lang.Exception - Exception
Method Detail

readSqlQueryFromConfig

protected java.lang.String readSqlQueryFromConfig()
                                           throws java.lang.Exception
Read the SQL query from the configuration (deduces it from other parameters).

Overrides:
readSqlQueryFromConfig in class QueryDatabaseHandler
Returns:
a String.
Throws:
java.lang.Exception - Exception