contentbox.model.security

Class LoginAttempt

railo-context.Component
        extended by contentbox.model.security.LoginAttempt
Class Attributes:
  • entityname : cbLoginAttempt
  •  
  • cacheuse : read-write
  •  
  • table : cb_loginAttempts
  •  
  • synchronized : false
  •  
  • cachename : loginAttempt
  •  
  • accessors : false
  •  
  • persistent : true
  •  

    ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Store logins from cbadmin. Entity used to prevent brute force

    Property Summary
    type property default serializable required
    any attempts


    • notnull = true
    • ormtype = integer
    0 true false
    any createdDate


    • notnull = true
    • ormtype = timestamp
    • index = idx_createdDate
    true false
    boolean isBlocked


    • persistent = false
    false true false
    any lastLoginSuccessIP


    • notnull = false
    • length = 100
    true false
    any loginAttemptsID


    • fieldtype = id
    • generator = native
    • setter = no
    true false
    any value


    • notnull = true
    • index = idx_values
    • length = 255
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string getAttempts()
    string getCreatedDate()
    string getDisplayCreatedDate()
         Get formatted createdDate.
    string getIsBlocked()
    string getLastLoginSuccessIP()
    string getLoginAttemptsID()
    string getValue()
    boolean isLoaded()
         is loaded?.
    any setAttempts(any attempts)
    any setCreatedDate(any createdDate)
    any setIsBlocked(boolean isBlocked)
    any setLastLoginSuccessIP(any lastLoginSuccessIP)
    any setValue(any value)
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    attempts

    property any attempts = [0]

    Attributes:
    required - false
    notnull - true
    ormtype - integer
    serializable - true

    createdDate

    property any createdDate

    Attributes:
    required - false
    notnull - true
    ormtype - timestamp
    index - idx_createdDate
    serializable - true

    isBlocked

    property boolean isBlocked = [false]

    Attributes:
    required - false
    persistent - false
    serializable - true

    lastLoginSuccessIP

    property any lastLoginSuccessIP

    Attributes:
    required - false
    notnull - false
    length - 100
    serializable - true

    loginAttemptsID

    property any loginAttemptsID

    Attributes:
    required - false
    fieldtype - id
    generator - native
    serializable - true
    setter - no

    value

    property any value

    Attributes:
    required - false
    notnull - true
    index - idx_values
    length - 255
    serializable - true

    Method Detail

    getAttempts

    public string getAttempts()


    getCreatedDate

    public string getCreatedDate()


    getDisplayCreatedDate

    public string getDisplayCreatedDate()

    Get formatted createdDate


    getIsBlocked

    public string getIsBlocked()


    getLastLoginSuccessIP

    public string getLastLoginSuccessIP()


    getLoginAttemptsID

    public string getLoginAttemptsID()


    getValue

    public string getValue()


    isLoaded

    public boolean isLoaded()

    is loaded?


    setAttempts

    public any setAttempts(any attempts)

    Parameters:
    attempts

    setCreatedDate

    public any setCreatedDate(any createdDate)

    Parameters:
    createdDate

    setIsBlocked

    public any setIsBlocked(boolean isBlocked)

    Parameters:
    isBlocked

    setLastLoginSuccessIP

    public any setLastLoginSuccessIP(any lastLoginSuccessIP)

    Parameters:
    lastLoginSuccessIP

    setValue

    public any setValue(any value)

    Parameters:
    value