com.raritantechnologies.searchApp.database
Class DatabaseUserLoginLogger

java.lang.Object
  extended bycom.raritantechnologies.searchApp.database.DatabaseUserLoginLogger
All Implemented Interfaces:
IConfigurable, IUserLoginLogger

public class DatabaseUserLoginLogger
extends java.lang.Object
implements IUserLoginLogger

Writes User login to a relational Database.

XML Configuration Template:
   <UserLoginLogger class="com.raritantechnologies.searchApp.database.DatabaseUserLoginLogger"
                       connectionManager="[Database connection manager SystemObject name]"
                       dateFormatString="[ date format for 'DATE' values ]" >

     <ValidateUserTemplate>[ SQL Template for Validate User Event ]</ValidateUserTemplate>

     <RegisterUserTemplate>[ SQL Template for Register User Event ]</RegisterUserTemplate>   

     <RemoveUserTemplate>[ SQL Template for Remove User Event ]</RemoveUserTemplate>  

   </UserLoginLogger>


Field Summary
 
Fields inherited from interface com.raritantechnologies.quickstart.IUserLoginLogger
REGISTER_USER, REMOVE_USER, VALIDATE_USER
 
Constructor Summary
DatabaseUserLoginLogger()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void logUserLoginEvent(ILoginInfo userInfo, int eventType)
          Adds user attributes to a userInfo object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseUserLoginLogger

public DatabaseUserLoginLogger()
Method Detail

logUserLoginEvent

public void logUserLoginEvent(ILoginInfo userInfo,
                              int eventType)
Description copied from interface: IUserLoginLogger
Adds user attributes to a userInfo object.

Specified by:
logUserLoginEvent in interface IUserLoginLogger

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable