home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
usrldbobj.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
93 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)usrldbobj.tcl 1.14
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)usrldbobj.tcl 1.14 23 Feb 1996 Copyright 1996 Cadre Technologies 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 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::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