home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)usrldbobj.tcl /main/titanic/1
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)usrldbobj.tcl /main/titanic/1 28 Nov 1996 Copyright 1996 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "browsdbobj.tcl"
-
- Class UsrLDbObj : {BrowsDbObj UserRoleLink} {
- method destructor
- constructor
- method browserType
- method customLevelVersion
- method hasChildren
- method initializeInfo
- method linkStatus
- method name
- }
-
- method UsrLDbObj::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this BrowsDbObj::destructor
- }
-
- constructor UsrLDbObj {class this name} {
- set this [UserRoleLink::constructor $class $this $name]
- set this [BrowsDbObj::constructor $class $this $name]
- return $this
- }
-
- selfPromoter UserRoleLink {this} {
- UsrLDbObj promote $this
- }
-
- proc UsrLDbObj::associations {} {
- return ""
- }
-
- method UsrLDbObj::browserType {this} {
- if {"[[$this info] set ParentType]" == "Role"} {
- return "UserLink"
- }
- return "RoleLink"
- }
-
- proc UsrLDbObj::childTypes {assoc} {
- if {[lsearch -exact "[UsrLDbObj::associations]" "$assoc"] == -1} {
- return ""
- }
- return [BrowserProcs::childTypes $assoc]
- }
-
- proc UsrLDbObj::controlledLists {} {
- return ""
- }
-
- method UsrLDbObj::customLevelVersion {this} {
- if {"[[$this info] set ParentType]" == "Role"} {
- return [[$this role] customLevelVersion]
- }
- return [[$this user] customLevelVersion]
- }
-
- method UsrLDbObj::hasChildren {this} {
- return 0
- }
-
- proc UsrLDbObj::infoProperties {} {
- return [concat \
- [BrowserProcs::infoProperties] \
- {Link} \
- ]
- }
-
- method UsrLDbObj::initializeInfo {this parent} {
- [$this info] contents ""
- $this setInfo ParentType [$parent getInfo Type]
- }
-
- method UsrLDbObj::linkStatus {this} {
- return [$this use]
- }
-
- method UsrLDbObj::name {this} {
- if {"[[$this info] set ParentType]" == "Role"} {
- return "[[$this user] name]"
- }
- return "[[$this role] name]"
- }
-
- # Do not delete this line -- regeneration end marker
-
-