Class ::nsmcp::RequestContext (public)

 ::nsmcp::RequestClass ::nsmcp::RequestContext[i]

Defined in /usr/local/ns/tcl/nsmcp/00-lifecycle.tcl

Testcases:
No testcase defined.
Source code:
    :property principal:required
    :property permissions:required
    :property targets:required
    :property server:required
    :property {questionRestricted:boolean false}
    :property {questionPins {}}

    :public method principal {} {
        #
        # Return the authenticated principal for this request.
        #
        # Read the identity recorded when the context was created; no credential
        # lookup is performed.
        #
        # @return The principal identifier.
        #

        return ${:principal}
    }

    :public method permissions {} {
        #
        # Return the permissions granted to this request.
        #
        # The returned grants describe the authenticated credential, not the
        # registry's complete tool inventory.
        #
        # @return The permission list.
        #

        return ${:permissions}
    }

    :public method targets {} {
        #
        # Return the servers targeted by the authenticated credential.
        #
        # Authorization also requires the current server to belong to this target
        # list.
        #
        # @return The list of permitted server names.
        #

        return ${:targets}
    }

    :public method server {} {
        #
        # Return the virtual server selected for this request.
        #
        # This is the server bound to the authenticated context used by tool
        # execution.
        #
        # @return The virtual-server name.
        #

        return ${:server}
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: