railo-context.Componentcontentbox.model.security.Role
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. A cool Role entity
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
description
|
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()
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
|
isLoaded()
is loaded?. |
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 railo-context.Component |
---|
None |
Constructor Detail |
---|
Property Detail |
---|
required
- falsenotnull
- falseormtype
- stringlength
- 500serializable
- truerequired
- falseformula
- select count(*) from cb_author as author where author.FK_roleID=roleIDserializable
- truerequired
- falseformula
- select count(*) from cb_rolePermissions as rolePermissions where rolePermissions.FK_roleID=roleIDserializable
- truerequired
- falsepersistent
- falseserializable
- truelinktable
- cb_rolePermissionsrequired
- falsefieldtype
- many-to-manycascade
- allcacheuse
- read-writeorderby
- permissionsingularname
- permissionfkcolumn
- FK_roleIDserializable
- trueinversejoincolumn
- FK_permissionIDcfc
- contentbox.model.security.Permissionlazy
- extrarequired
- falseinject
- permissionService@cbpersistent
- falseserializable
- trueunique
- truerequired
- falsenotnull
- trueormtype
- stringlength
- 255serializable
- truerequired
- falsefieldtype
- idgenerator
- 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
Get the role name, same as getRole()
permission
is loaded?
permission
description
numberOfAuthors
numberOfPermissions
permissionList
Override the setPermissions
permissions
permissionService
role