com.raritantechnologies.searchApp.database
Class DatabaseUserLoginLogger
java.lang.Object
com.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>
|
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 |
DatabaseUserLoginLogger
public DatabaseUserLoginLogger()
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