public class LogonAttemptController extends JDBCObjectController<LogonAttempt>
LogonAttempt
class. Provides methods for
retrieving and persisting user logon attempt table records in the database.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
ivDBObjCls, ivFieldCount, ivFieldKeyAlt, ivFieldKeyPri, ivFieldResPfx, ivSyncLast, ivSyncType, ivTableName
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
LogonAttemptController()
The constructor for the controller.
|
Modifier and Type | Method and Description |
---|---|
int |
add(LogonAttempt obj,
boolean logdup)
Adds a new record to the table associated with the controller.
|
boolean |
add(java.lang.String id)
Adds a new logon attempt record to the database table.
|
boolean |
deleteUser(java.lang.String id)
Deletes all user logon attempt records from the database for the given user
id.
|
java.util.ArrayList<LogonAttempt> |
getUser(java.lang.String id)
Returns a collection of user logon attempt records for the given user id.
|
boolean |
overLimit(java.lang.String id)
Answers if the number of failed logon attempts for the given user id
exceeds the configured maximum allowed within the configured number of
hours.
|
add, add, arrayToMap, arrayToMap, countAll, delete, delete, deleteAll, dispose, equals, getAll, getConnection, getConnectionInfo, getController, getFieldNames, getFieldNamesForKey, getFieldNamesForUpdate, getFieldNulls, getFieldNullsForKey, getFieldNullsForUpdate, getFieldsForOrderBy, getFieldsForWhere, getFieldSize, getFieldTypes, getFieldTypesForKey, getFieldTypesForUpdate, getStatementForDelete, getStatementForGet, getStatementForGetAll, getStatementForInsert, getStatementForUpdate, getStatementKey, getStatementString, getTableName, hasFieldNamesForKey, hasFieldNamesForUpdate, isDuplicate, resultSetToArray, resultSetToMap, resultSetToMap, resultSetToObject, setConnectionInfo, setPSDeleteValues, setPSExistsValues, setPSInsertValues, setPSUpdateValues, setPSValue, update, update, valuesToObject
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
public LogonAttemptController()
public int add(LogonAttempt obj, boolean logdup)
add
in JDBCObjectController
.add
in class JDBCObjectController<LogonAttempt>
obj
- (JDBCObject) The object for the record to be added.logdup
- (boolean) true
if duplicate errors are to be
logged as an exception, otherwise false
if not. When
duplicates are logged, the return value of 1 is never returned.public boolean add(java.lang.String id)
id
- (String) The id of the user who attempted logon.true
if the record added successfully,
otherwise false
.public boolean deleteUser(java.lang.String id)
id
- (String) The user id for the records to be deleted.true
if the records deleted successfully,
otherwise false
.public java.util.ArrayList<LogonAttempt> getUser(java.lang.String id)
id
- (String) The user id for the desired records.public boolean overLimit(java.lang.String id)
id
- (String) The id for the user to check.true
if over the failed logon attempt limit,
otherwise false