<@doc hierarchy="GMLDOM"> (c) SAP AG 2003-2006. All rights reserved. Class RepositoryNode inherit dev:TNode; //property isRoot = true; property isDtrRoot = false; //legacy, TODO: get rid of it property isLocalRoot = true; //legacy, TODO: get rid of it property isPartialLCM = false; property canCreateSC = false; override method init(id, name, supp, hint, size, mode, check, icon) this.supercall(id, name, hint, size, mode, check, icon) this.isDtrRoot = false; //legacy, TODO: get rid of it this.isLocalRoot = true; //legacy, TODO: get rid of it this.isLocal = true; //relying on the fact there are 2 supported operations signals sent by 'listAvailableRepositories' // where first one decalres LCM support scope // and second one declares support of new SC creation if (supp && supp.length == 2) { this.isPartialLCM = (supp[0] == RepositoryOperation.PARTIAL_LCM)? true:false; this.canCreateSC = (supp[1] == RepositoryOperation.CAN_CREATE_SC)? true:false; } end override method setIcon() this.icon = '#URL[env~skin:icons.library.gif]'; end override method getDescription() var errorMessage = this.getErrorMessage(); if (errorMessage) return errorMessage; return ''; end override method getChildren(channel, scope) var location = $ENV.createObject('dev:Location', '', '', this.serverid, '', '', '', '', ''); var scs = channel.listSoftwareComponents(location); return scs; end override method initOneChild(res) //create the object return createNode_SC( {urn:res.getSCFullName(), name:res.getSCFullName()}); end override method getNodeSupportedOperations() // ONLY this node contains property isLocal!! return {isLocal:this.isLocal, isPartialLCM:this.isPartialLCM, canCreateSC:this.canCreateSC}; end