|
ContentBox Core API 1.5.7 | ||||
FRAMES |
WEB-INF.cftags.componentcontentbox.model.security.Role
public class Role
******************************************************************************* ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.gocontentbox.org | www.luismajano.com | 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
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
void |
ADDPERMISSION(Permission permission)
|
any |
GETDESCRIPTION()
|
any |
GETNUMBEROFAUTHORS()
|
any |
GETNUMBEROFPERMISSIONS()
|
any |
GETPERMISSIONLIST()
|
array |
GETPERMISSIONS()
|
any |
GETPERMISSIONSERVICE()
|
any |
GETROLE()
|
any |
GETROLEID()
|
boolean |
HASPERMISSION([Permission permissions])
|
boolean |
REMOVEPERMISSION(Permission permission)
|
void |
SETDESCRIPTION(any description)
|
void |
SETNUMBEROFAUTHORS(any numberOfAuthors)
|
void |
SETNUMBEROFPERMISSIONS(any numberOfPermissions)
|
void |
SETPERMISSIONLIST(any permissionList)
|
void |
SETPERMISSIONSERVICE(any permissionService)
|
void |
SETROLE(any role)
|
boolean |
checkPermission(any slug)
Check for permission |
Role |
clearPermissions()
Clear all permissions |
any |
getMemento()
Get memento representation |
boolean |
isLoaded()
is loaded? |
Role |
setPermissions(array permissions)
Override the setPermissions |
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init()
Method Detail |
---|
public void ADDPERMISSION(Permission permission)
permission
public any GETDESCRIPTION()
public any GETNUMBEROFAUTHORS()
public any GETNUMBEROFPERMISSIONS()
public any GETPERMISSIONLIST()
public array GETPERMISSIONS()
public any GETPERMISSIONSERVICE()
public any GETROLE()
public any GETROLEID()
public boolean HASPERMISSION([Permission permissions])
permissions
public boolean REMOVEPERMISSION(Permission permission)
permission
public void SETDESCRIPTION(any description)
description
public void SETNUMBEROFAUTHORS(any numberOfAuthors)
numberOfAuthors
public void SETNUMBEROFPERMISSIONS(any numberOfPermissions)
numberOfPermissions
public void SETPERMISSIONLIST(any permissionList)
permissionList
public void SETPERMISSIONSERVICE(any permissionService)
permissionService
public void SETROLE(any role)
role
public boolean checkPermission(any slug)
slug
- The permission slug or list of slugs to validate the role has. If it's a list then they are ORed togetherpublic Role clearPermissions()
public any getMemento()
public boolean isLoaded()
public Role setPermissions(array permissions)
permissions
|
ContentBox Core API 1.5.7 | ||||
FRAMES |