com.jamasoftware.contour.dao
Interface UserLogEntryDao


public interface UserLogEntryDao

Data access methods for UserLogEntry.

Author:
Sean Tong

Method Summary
 void cleanupLogoutTime()
          Set logout time to be current date time for null values.
 void deleteUserLogEntry(UserLogEntry logEntry)
          Deletes the specified log entry.
 int getNumberUniqueRejectedLoginEventsForLicenseType(java.util.Date from, java.util.Date to, com.jamasoftware.contour.util.license.UserLicenseType licenseType, java.lang.Integer organizationId)
          Retrieve the number of "rejected" login events that happened for a given range, not counting multiple by the same user.
 UserLogEntry getUserLogEntry(java.lang.Integer entryId)
          Get the log entry by the entry id.
 java.util.List<UserLogEntry> getUserLogEntryList(java.lang.Integer userId)
          Gets list of of log entries for the given user.
 java.util.List<UserLogEntry> getUserLogEntryListBySession(java.lang.String sessionId)
          Gets all the log entries for the given session id.
 void saveUserLogEntry(UserLogEntry logEntry)
          Saves or updates the specified log entry.
 

Method Detail

getUserLogEntryList

java.util.List<UserLogEntry> getUserLogEntryList(java.lang.Integer userId)
Gets list of of log entries for the given user.

Parameters:
userId - the id of the user
Returns:
list of log entries

getUserLogEntry

UserLogEntry getUserLogEntry(java.lang.Integer entryId)
Get the log entry by the entry id.

Parameters:
entryId - the id of the log entry
Returns:
the log entry identified by the id. Null if no match.

saveUserLogEntry

void saveUserLogEntry(UserLogEntry logEntry)
Saves or updates the specified log entry.

Parameters:
logEntry - the logEntry to be saved.

deleteUserLogEntry

void deleteUserLogEntry(UserLogEntry logEntry)
Deletes the specified log entry.

Parameters:
logEntry - the log entry to be deleted.

getUserLogEntryListBySession

java.util.List<UserLogEntry> getUserLogEntryListBySession(java.lang.String sessionId)
Gets all the log entries for the given session id.

Parameters:
sessionId - session id
Returns:
a list of log entries.

cleanupLogoutTime

void cleanupLogoutTime()
Set logout time to be current date time for null values.


getNumberUniqueRejectedLoginEventsForLicenseType

int getNumberUniqueRejectedLoginEventsForLicenseType(java.util.Date from,
                                                     java.util.Date to,
                                                     com.jamasoftware.contour.util.license.UserLicenseType licenseType,
                                                     java.lang.Integer organizationId)
Retrieve the number of "rejected" login events that happened for a given range, not counting multiple by the same user. Note that rejected simply means that you couldn't log in as the requested license, not necessarily that you couldn't log in at all (e.g. floating users will become reviewers if all floats are taken, and this is still considered a rejection)



Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.