ContentBox Core API 1.6.0

contentbox.model.security
Class Permission

WEB-INF.cftags.component
        extended by contentbox.model.security.Permission

public class Permission
extends WEB-INF.cftags.component

******************************************************************************* 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 Permission entity

Property Summary
Type Property & Description Default Serializable Required
 any description


Attributes:
  • ormtype = string
  • notnull = false
  • length = 500
true false
 any numberOfRoles


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


Attributes:
  • unique = true
  • ormtype = string
  • notnull = true
  • length = 255
true false
 any permissionID


Attributes:
  • generator = native
  • fieldtype = id
  • setter = false
true false
 
Constructor Summary
init()
 
Method Summary
 any GETDESCRIPTION()
          get:
 any GETNUMBEROFROLES()
          get:
 any GETPERMISSION()
          get:
 any GETPERMISSIONID()
          get:
 Permission SETDESCRIPTION(any description)
          set:
 Permission SETNUMBEROFROLES(any numberOfRoles)
          set:
 Permission SETPERMISSION(any permission)
          set:
 any getMemento()
          Get memento representation
 boolean isLoaded()
          is loaded?
 
Methods inherited from class WEB-INF.cftags.component
None
 

Constructor Detail

init

public init()

Property Detail

description

any description

Attributes:
ormtype - string
serializable - true
required - false
notnull - false
length - 500
default -

numberOfRoles

any numberOfRoles

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

permission

any permission

Attributes:
unique - true
ormtype - string
serializable - true
required - false
notnull - true
length - 255
default -

permissionID

any permissionID

Attributes:
generator - native
fieldtype - id
serializable - true
required - false
default -
setter - false

Method Detail

GETDESCRIPTION

public any GETDESCRIPTION()
get:


GETNUMBEROFROLES

public any GETNUMBEROFROLES()
get:


GETPERMISSION

public any GETPERMISSION()
get:


GETPERMISSIONID

public any GETPERMISSIONID()
get:


SETDESCRIPTION

public Permission SETDESCRIPTION(any description)
set:

Parameters:
description

SETNUMBEROFROLES

public Permission SETNUMBEROFROLES(any numberOfRoles)
set:

Parameters:
numberOfRoles

SETPERMISSION

public Permission SETPERMISSION(any permission)
set:

Parameters:
permission

getMemento

public any getMemento()
Get memento representation


isLoaded

public boolean isLoaded()
is loaded?


ContentBox Core API 1.6.0