lucee.Component contentbox.models.BaseEntityMethods contentbox.models.BaseEntity contentbox.models.security.Role
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A cool Role entity
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
date
|
createdDate
|
true
|
false
|
|
any
|
description
|
true
|
false
|
|
any
|
isDeleted
|
false
|
true
|
false
|
date
|
modifiedDate
|
true
|
false
|
|
any
|
numberOfAuthors
|
true
|
false
|
|
any
|
numberOfPermissions
|
true
|
false
|
|
any
|
permissionList
|
true
|
false
|
|
array
|
permissions
|
true
|
false
|
|
any
|
permissionService
|
true
|
false
|
|
any
|
role
|
true
|
false
|
|
any
|
roleID
|
true
|
false
|
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
any
|
addPermission(any permission)
|
boolean
|
checkPermission(any slug)
Check for permission. |
Role
|
clearPermissions()
Clear all permissions. |
string
|
getDescription()
|
any
|
getMemento([any excludes=''], [boolean showPermissions='true'])
Get memento representation. |
string
|
getName()
Get the role name, same as getRole(). |
string
|
getNumberOfAuthors()
|
string
|
getNumberOfPermissions()
|
string
|
getPermissionList()
|
string
|
getPermissions()
|
string
|
getPermissionService()
|
string
|
getRole()
|
string
|
getRoleID()
|
boolean
|
hasPermission([any permission])
|
boolean
|
removePermission(any permission)
|
any
|
setDescription(any description)
|
any
|
setNumberOfAuthors(any numberOfAuthors)
|
any
|
setNumberOfPermissions(any numberOfPermissions)
|
any
|
setPermissionList(any permissionList)
|
Role
|
setPermissions(array permissions)
Override the setPermissions. |
any
|
setPermissionService(any permissionService)
|
any
|
setRole(any role)
|
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 |
---|
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anynotnull
- trueormtype
- timestampupdate
- falseindex
- idx_createDateserializable
- trueaccess
- publicrequired
- falsereturntype
- anynotnull
- falseormtype
- stringlength
- 500serializable
- trueaccess
- publicrequired
- falsedbdefault
- 0returntype
- anynotnull
- trueormtype
- booleanindex
- idx_deletedserializable
- truesqltype
- bitaccess
- publicrequired
- falsereturntype
- anynotnull
- trueormtype
- timestampindex
- idx_modifiedDateserializable
- trueaccess
- publicrequired
- falsereturntype
- anyformula
- select count(*) from cb_author as author where author.FK_roleID=roleIDserializable
- trueaccess
- publicrequired
- falsereturntype
- anyformula
- select count(*) from cb_rolePermissions as rolePermissions where rolePermissions.FK_roleID=roleIDserializable
- trueaccess
- publicrequired
- falsereturntype
- anypersistent
- falseserializable
- truelinktable
- cb_rolePermissionsaccess
- publicrequired
- falsefieldtype
- many-to-manyreturntype
- anycascade
- allcacheuse
- read-writeorderby
- permissionsingularname
- permissionfkcolumn
- FK_roleIDserializable
- trueinversejoincolumn
- FK_permissionIDcfc
- contentbox.models.security.Permissionlazy
- extraaccess
- publicrequired
- falsereturntype
- anyinject
- permissionService@cbpersistent
- falseserializable
- trueaccess
- publicunique
- truerequired
- falsereturntype
- anynotnull
- trueormtype
- stringlength
- 255serializable
- trueaccess
- publicrequired
- falsefieldtype
- idreturntype
- anyparams
- { allocationSize = 1, sequence = 'roleID_seq' }generator
- nativeserializable
- truesetter
- noMethod Detail |
---|
permission
Check for permission
slug
- The permission slug or list of slugs to validate the role has. If it's a list then they are ORed togetherClear all permissions
Get memento representation
excludes
- Exclude propertiesshowPermissions
- Show permissions or notGet the role name, same as getRole()
permission
permission
description
numberOfAuthors
numberOfPermissions
permissionList
Override the setPermissions
permissions
permissionService
role