Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2f059f

Browse files
backtozeroIslam Khachmakhov
authored andcommitted
Simple method for namespace binding.
This version is only for String.
1 parent 900b28a commit a2f059f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bin/wsadminlib.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8799,6 +8799,18 @@ def createApplicationServerClusterMember(appsrvclustermapping, nodename,serverna
87998799
def createStandaloneApplicationServerMapping(customadvisorname,nodename,servername,cellname,applicationname):
88008800
return AdminConfig.create("StandAloneApplicationServerMapping",customadvisorname, [["nodeName",nodename],["serverName", servername],["cellName", cellname],["applicationName", applicationname]])
88018801

8802+
###############################################################################
8803+
# Namespace bindings
8804+
8805+
def createStringNameSpaceBinding(scope, bindingName, nameInNameSpace, stringToBind):
8806+
"""Configuring String namespace binding
8807+
scope - objectId
8808+
bindingName - Specifies a name that uniquely identifies this configured binding.
8809+
nameInNameSpace - Specifies a name for this binding in the name space. It is a simple or compound name relative to the portion of the name space where this binding is configured.
8810+
stringToBind - Specifies the string to be bound into the name space.
8811+
"""
8812+
return AdminConfig.create("StringNameSpaceBinding", scope, [["name", bindingName], ["nameInNameSpace", nameInNameSpace], ["stringToBind", stringToBind]])
8813+
88028814
###############################################################################
88038815
# Wrapper definitions for AdminConfig (logs activity automatically)
88048816

0 commit comments

Comments
 (0)