contentbox.models.security

Class LoginAttempt

lucee.Component
    extended by contentbox.models.BaseEntityMethods
      extended by contentbox.models.BaseEntity
        extended by contentbox.models.security.LoginAttempt

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Store logins from admin attempts. Depending on system settings, users can be blocked via this entity

Class Attributes:
  • entityname : cbLoginAttempt
  •  
  • cacheuse : read-write
  •  
  • table : cb_loginAttempts
  •  
  • synchronized : false
  •  
  • cachename : loginAttempt
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    any attempts
          How many attempts in the system.

    • access = public
    • returntype = any
    • notnull = true
    • ormtype = integer
    0 true false
    date createdDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • update = false
    • index = idx_createDate
    true false
    boolean isBlocked
          Verifies if tracking is blocked or not.

    • access = public
    • returntype = any
    • persistent = false
    false true false
    any isDeleted


    • access = public
    • dbdefault = 0
    • returntype = any
    • notnull = true
    • ormtype = boolean
    • index = idx_deleted
    • sqltype = bit
    false true false
    any lastLoginSuccessIP
          Tracks the last successful login IP address.

    • access = public
    • returntype = any
    • notnull = false
    • length = 100
    true false
    any loginAttemptsID
          Primary key.

    • access = public
    • fieldtype = id
    • returntype = any
    • params = { allocationSize = 1, sequence = 'loginAttemptsID_seq' }
    • generator = native
    • setter = no
    true false
    date modifiedDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • index = idx_modifiedDate
    true false
    any value
          The username attempt value.

    • access = public
    • returntype = any
    • notnull = true
    • index = idx_values
    • length = 255
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string getAttempts()
    string getIsBlocked()
    string getLastLoginSuccessIP()
    string getLoginAttemptsID()
    any getMemento([any excludes=''])
         Get memento representation.
    string getValue()
    any setAttempts(any attempts)
    any setIsBlocked(boolean isBlocked)
    any setLastLoginSuccessIP(any lastLoginSuccessIP)
    any setValue(any value)
     
    Methods inherited from class contentbox.models.BaseEntity
    getCreatedDate, getIsDeleted, getModifiedDate, setCreatedDate, setIsDeleted, setModifiedDate
     
    Methods inherited from class contentbox.models.BaseEntityMethods
    getBaseMemento, getDisplayCreatedDate, getDisplayModifiedDate, isLoaded, preInsert, preUpdate
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    attempts

    property any attempts = [0]

    How many attempts in the system

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - integer
    serializable - true

    createdDate

    property date createdDate

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - timestamp
    update - false
    index - idx_createDate
    serializable - true

    isBlocked

    property boolean isBlocked = [false]

    Verifies if tracking is blocked or not

    Attributes:
    access - public
    required - false
    returntype - any
    persistent - false
    serializable - true

    isDeleted

    property any isDeleted = [false]

    Attributes:
    access - public
    required - false
    dbdefault - 0
    returntype - any
    notnull - true
    ormtype - boolean
    index - idx_deleted
    serializable - true
    sqltype - bit

    lastLoginSuccessIP

    property any lastLoginSuccessIP

    Tracks the last successful login IP address

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - false
    length - 100
    serializable - true

    loginAttemptsID

    property any loginAttemptsID

    Primary key

    Attributes:
    access - public
    required - false
    fieldtype - id
    returntype - any
    params - { allocationSize = 1, sequence = 'loginAttemptsID_seq' }
    generator - native
    serializable - true
    setter - no

    modifiedDate

    property date modifiedDate

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - timestamp
    index - idx_modifiedDate
    serializable - true

    value

    property any value

    The username attempt value

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    index - idx_values
    length - 255
    serializable - true

    Method Detail

    getAttempts

    public string getAttempts()


    getIsBlocked

    public string getIsBlocked()


    getLastLoginSuccessIP

    public string getLastLoginSuccessIP()


    getLoginAttemptsID

    public string getLoginAttemptsID()


    getMemento

    public any getMemento([any excludes=''])

    Get memento representation

    Parameters:
    excludes

    getValue

    public string getValue()


    setAttempts

    public any setAttempts(any attempts)

    Parameters:
    attempts

    setIsBlocked

    public any setIsBlocked(boolean isBlocked)

    Parameters:
    isBlocked

    setLastLoginSuccessIP

    public any setLastLoginSuccessIP(any lastLoginSuccessIP)

    Parameters:
    lastLoginSuccessIP

    setValue

    public any setValue(any value)

    Parameters:
    value