contentbox.models.security

Class Permission

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

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A cool Permission entity

Class Attributes:
  • entityname : cbPermission
  •  
  • cacheuse : read-write
  •  
  • table : cb_permission
  •  
  • synchronized : false
  •  
  • cachename : cbPermission
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    date createdDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • update = false
    • index = idx_createDate
    true false
    any description


    • access = public
    • returntype = any
    • notnull = false
    • ormtype = string
    • length = 500
    true false
    any isDeleted


    • access = public
    • dbdefault = 0
    • returntype = any
    • notnull = true
    • ormtype = boolean
    • index = idx_deleted
    • sqltype = bit
    false true false
    date modifiedDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • index = idx_modifiedDate
    true false
    any numberOfRoles


    • access = public
    • returntype = any
    • formula = select count(*) from cb_rolePermissions as rolePermissions where rolePermissions.FK_permissionID=permissionID
    true false
    any permission


    • access = public
    • unique = true
    • returntype = any
    • notnull = true
    • ormtype = string
    • length = 255
    true false
    any permissionID


    • access = public
    • fieldtype = id
    • returntype = any
    • params = { allocationSize = 1, sequence = 'permissionID_seq' }
    • generator = native
    • setter = no
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string getDescription()
    any getMemento([any excludes=''])
         Get memento representation.
    string getNumberOfRoles()
    string getPermission()
    string getPermissionID()
    any setDescription(any description)
    any setNumberOfRoles(any numberOfRoles)
    any setPermission(any permission)
     
    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

    createdDate

    property date createdDate

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

    description

    property any description

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - false
    ormtype - string
    length - 500
    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

    modifiedDate

    property date modifiedDate

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

    numberOfRoles

    property any numberOfRoles

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_rolePermissions as rolePermissions where rolePermissions.FK_permissionID=permissionID
    serializable - true

    permission

    property any permission

    Attributes:
    access - public
    unique - true
    required - false
    returntype - any
    notnull - true
    ormtype - string
    length - 255
    serializable - true

    permissionID

    property any permissionID

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

    Method Detail

    getDescription

    public string getDescription()


    getMemento

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

    Get memento representation

    Parameters:
    excludes

    getNumberOfRoles

    public string getNumberOfRoles()


    getPermission

    public string getPermission()


    getPermissionID

    public string getPermissionID()


    setDescription

    public any setDescription(any description)

    Parameters:
    description

    setNumberOfRoles

    public any setNumberOfRoles(any numberOfRoles)

    Parameters:
    numberOfRoles

    setPermission

    public any setPermission(any permission)

    Parameters:
    permission