lucee.Componentcontentbox.models.BaseEntityMethods
contentbox.models.BaseEntity
contentbox.models.security.PermissionGroup
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- This entity groups permissions for logical groupings
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
array
|
authors
|
true
|
false
|
|
date
|
createdDate
|
true
|
false
|
|
any
|
description
|
true
|
false
|
|
any
|
isDeleted
|
false
|
true
|
false
|
date
|
modifiedDate
|
true
|
false
|
|
any
|
name
|
true
|
false
|
|
any
|
numberOfAuthors
|
true
|
false
|
|
any
|
numberOfPermissions
|
true
|
false
|
|
any
|
permissionGroupID
|
true
|
false
|
|
any
|
permissionList
|
true
|
false
|
|
array
|
permissions
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
addAuthor(any author)
|
any
|
addPermissions(any permissions)
|
PermissionGroup
|
clearAuthors()
Clear all authors. |
PermissionGroup
|
clearPermissions()
Clear all permissions. |
string
|
getAuthors()
|
string
|
getDescription()
|
string
|
getName()
|
string
|
getNumberOfAuthors()
|
string
|
getNumberOfPermissions()
|
string
|
getPermissionGroupID()
|
string
|
getPermissionList()
|
string
|
getPermissions()
|
boolean
|
hasAuthor([any author])
|
boolean
|
hasPermission(any permission)
Verify if the permission group has one or more of the passed in permissions. |
boolean
|
hasPermissions([any permissions])
|
boolean
|
removeAuthor(any author)
|
boolean
|
removePermissions(any permissions)
|
PermissionGroup
|
setAuthors(array authors)
Override the setAuthors. |
any
|
setDescription(any description)
|
any
|
setName(any name)
|
any
|
setNumberOfAuthors(any numberOfAuthors)
|
any
|
setNumberOfPermissions(any numberOfPermissions)
|
any
|
setPermissionGroupID(any permissionGroupID)
|
any
|
setPermissionList(any permissionList)
|
PermissionGroup
|
setPermissions(array permissions)
Override the setPermissions. |
Methods inherited from class contentbox.models.BaseEntity |
---|
getCreatedDate, getIsDeleted, getModifiedDate, setCreatedDate, setIsDeleted, setModifiedDate |
Methods inherited from class contentbox.models.BaseEntityMethods |
---|
appendToMemento, appendToMementoProfile, arrayWrap, getDisplayCreatedDate, getDisplayModifiedDate, getEntityName, getId, includeMixin, isLoaded, preInsert, preUpdate |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
linktable
- cb_authorPermissionGroupsaccess
- publicrequired
- falsefieldtype
- many-to-manyreturntype
- anycacheuse
- read-writesingularname
- authorfkcolumn
- FK_permissionGroupIDserializable
- trueinversejoincolumn
- FK_authorIDcfc
- contentbox.models.security.Authorlazy
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- createdDatenotnull
- trueormtype
- timestampupdate
- falsepersistent
- trueserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- descriptionnotnull
- falseormtype
- stringlength
- 500serializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- isDeletednotnull
- trueormtype
- booleanpersistent
- trueserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- modifiedDatenotnull
- trueormtype
- timestamppersistent
- trueserializable
- trueaccess
- publicunique
- truerequired
- falsereturntype
- anycolumn
- namenotnull
- trueormtype
- stringindex
- idx_permissionGroupNamelength
- 255serializable
- trueaccess
- publicrequired
- falsereturntype
- anyformula
- select count(*) from cb_authorPermissionGroups as pg where pg.FK_permissionGroupID = permissionGroupIDserializable
- trueaccess
- publicrequired
- falsereturntype
- anyformula
- select count(*) from cb_groupPermissions as groupPermissions
where groupPermissions.FK_permissionGroupID = permissionGroupIDserializable
- trueaccess
- publicrequired
- falsefieldtype
- idreturntype
- anycolumn
- permissionGroupIDupdate
- falsegenerator
- uuidlength
- 36serializable
- trueaccess
- publicrequired
- falsereturntype
- anypersistent
- falseserializable
- truelinktable
- cb_groupPermissionsaccess
- publicrequired
- falsefieldtype
- many-to-manyreturntype
- anycascade
- save-updatecacheuse
- read-writeorderby
- permissionfkcolumn
- FK_permissionGroupIDserializable
- trueinversejoincolumn
- FK_permissionIDcfc
- contentbox.models.security.Permissionlazy
- trueMethod Detail |
---|
author
permissions
Clear all authors
Clear all permissions
author
Verify if the permission group has one or more of the passed in permissions
permission
- One or a list of permissions to verifypermissions
author
permissions
Override the setAuthors
authors
- The permissions arraydescription
name
numberOfAuthors
numberOfPermissions
permissionGroupID
permissionList
Override the setPermissions
permissions
- The permissions array