public class HibUserLogEntryDaoImpl extends com.jamasoftware.contour.data.util.hibernate4.HibernateDaoSupport implements UserLogEntryDao
UserLogEntryDao
.Constructor and Description |
---|
HibUserLogEntryDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupLogoutTime()
Set logout time to be current date time for null values.
|
void |
deleteUserLogEntry(UserLogEntry userTime)
Deletes the specified log entry.
|
List<UserLogEntry> |
getLoginsForLastHours(Integer hours,
Integer orgId)
Get the UserLogEntrys with a loginTime within the specified number of hours from now.
|
int |
getNumberUniqueRejectedLoginEventsForLicenseType(Date from,
Date to,
com.jamasoftware.contour.api.util.license.UserLicenseType licenseType,
Integer organizationId)
Retrieve the number of "rejected" login events that happened for a given range, not counting multiple
by the same user.
|
List<Integer> |
getUserLogEntryIdList(List<Integer> userIds)
Gets list of of log entries for the given user.
|
List<UserLogEntry> |
getUserLogEntryListBySession(String sessionId)
Gets all the log entries for the given session id.
|
void |
saveUserAgent(String sessionId,
String userAgent)
Update a session's record with the user-agent captured at login.
|
void |
saveUserLogEntry(UserLogEntry userTimeTrack)
Saves or updates the specified log entry.
|
public void deleteUserLogEntry(UserLogEntry userTime)
UserLogEntryDao
deleteUserLogEntry
in interface UserLogEntryDao
userTime
- the log entry to be deleted.public List<Integer> getUserLogEntryIdList(List<Integer> userIds)
UserLogEntryDao
getUserLogEntryIdList
in interface UserLogEntryDao
userIds
- the ids of the userspublic List<UserLogEntry> getUserLogEntryListBySession(String sessionId)
UserLogEntryDao
getUserLogEntryListBySession
in interface UserLogEntryDao
sessionId
- session idpublic void saveUserLogEntry(UserLogEntry userTimeTrack)
UserLogEntryDao
saveUserLogEntry
in interface UserLogEntryDao
userTimeTrack
- the logEntry to be saved.public void cleanupLogoutTime()
UserLogEntryDao
cleanupLogoutTime
in interface UserLogEntryDao
public int getNumberUniqueRejectedLoginEventsForLicenseType(Date from, Date to, com.jamasoftware.contour.api.util.license.UserLicenseType licenseType, Integer organizationId)
UserLogEntryDao
getNumberUniqueRejectedLoginEventsForLicenseType
in interface UserLogEntryDao
public List<UserLogEntry> getLoginsForLastHours(Integer hours, Integer orgId)
UserLogEntryDao
getLoginsForLastHours
in interface UserLogEntryDao
hours
- How many hours to search back from the current timeorgId
- The organizationpublic void saveUserAgent(String sessionId, String userAgent)
UserLogEntryDao
saveUserAgent
in interface UserLogEntryDao
sessionId
- The sessionIduserAgent
- The user-agent value from the request header.Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.