home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)cclassdbob.tcl /main/3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cclassdbob.tcl /main/3 12 Jun 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "browsdbobj.tcl"
-
- Class CClassDbObj : {BrowsDbObj ControlledClass} {
- method destructor
- constructor
- method promoter
- method getRuleUiObj
- method setRuleUiObj
- method removeRuleUiObj
- attribute RuleUiObj
- }
-
- method CClassDbObj::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this BrowsDbObj::destructor
- }
-
- constructor CClassDbObj {class this name} {
- set this [ControlledClass::constructor $class $this $name]
- set this [BrowsDbObj::constructor $class $this $name]
- return $this
- }
-
- selfPromoter ControlledClass {this} {
- CClassDbObj promote $this
- }
-
- method CClassDbObj::promoter {this} {
- $this BrowsDbObj::promoter
-
- $this RuleUiObj [Dictionary new]
- }
-
- proc CClassDbObj::associations {} {
- return {rules}
- }
-
- proc CClassDbObj::childTypes {assoc} {
- if {[lsearch -exact "[CClassDbObj::associations]" "$assoc"] == -1} {
- return ""
- }
-
- set childTypes [BrowserProcs::childTypes $assoc]
- case "$childTypes" in {
- {AccessRule} {
- return {ownRight}
- }
- {default} {
- return "$childTypes"
- }
- }
- }
-
- proc CClassDbObj::controlledLists {} {
- return ""
- }
-
- proc CClassDbObj::infoProperties {} {
- return [concat \
- [BrowserProcs::infoProperties] \
- {"Controlled Actions"} \
- ]
- }
-
- # Do not delete this line -- regeneration end marker
-
- method CClassDbObj::getRuleUiObj {this ruleId} {
- return [[$this RuleUiObj] set $ruleId]
- }
-
- method CClassDbObj::setRuleUiObj {this ruleId newRuleUiObj} {
- [$this RuleUiObj] set $ruleId $newRuleUiObj
- }
-
- method CClassDbObj::removeRuleUiObj {this ruleId} {
- [$this RuleUiObj] unset $ruleId
- }
-
-