models.auth

Class User

lucee.Component
    extended by models.auth.User

Copyright since 2016 by Ortus Solutions, Corp www.ortussolutions.com --- This is a basic user object that can be used with CBSecurity. It implements the following interfaces via it's delegates - cbsecurity.interfaces.jwt.IJwtSubject - cbsecurity.interfaces.IAuthUser

Class Attributes:
  • delegates : Auth@cbSecurity, Authorizable@cbSecurity, JwtSubject@cbSecurity
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any firstName


    • access = public
    • returntype = any
    true false
    any id
          Properties.

    • access = public
    • returntype = any
    true false
    any lastName


    • access = public
    • returntype = any
    true false
    any password


    • access = public
    • returntype = any
    true false
    any permissions


    • access = public
    • returntype = any
    true false
    any roles


    • access = public
    • returntype = any
    true false
    any username


    • access = public
    • returntype = any
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string getFirstName()
    string getId()
    string getLastName()
    string getPassword()
    string getPermissions()
    string getRoles()
    string getUsername()
    boolean isLoaded()
         Verify if this is a valid user or not.
    any setFirstName(any firstName)
    any setId(any id)
    any setLastName(any lastName)
    any setPassword(any password)
    User setPermissions([any permissions])
         Set permissions into this object.
    User setRoles([any roles])
         Set roles into the object.
    any setUsername(any username)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    firstName

    property any firstName

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

    id

    property any id

    Properties

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

    lastName

    property any lastName

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

    password

    property any password

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

    permissions

    property any permissions

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

    roles

    property any roles

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

    username

    property any username

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

    Method Detail

    getFirstName

    public string getFirstName()


    getId

    public string getId()


    getLastName

    public string getLastName()


    getPassword

    public string getPassword()


    getPermissions

    public string getPermissions()


    getRoles

    public string getRoles()


    getUsername

    public string getUsername()


    isLoaded

    public boolean isLoaded()

    Verify if this is a valid user or not


    setFirstName

    public any setFirstName(any firstName)

    Parameters:
    firstName

    setId

    public any setId(any id)

    Parameters:
    id

    setLastName

    public any setLastName(any lastName)

    Parameters:
    lastName

    setPassword

    public any setPassword(any password)

    Parameters:
    password

    setPermissions

    public User setPermissions([any permissions])

    Set permissions into this object

    Parameters:
    permissions - array or list of permissions

    setRoles

    public User setRoles([any roles])

    Set roles into the object

    Parameters:
    roles - array or list of roles

    setUsername

    public any setUsername(any username)

    Parameters:
    username