%SYSTEM.CSP
abstract class %SYSTEM.CSP extends %SYSTEM.Help
The %SYSTEM.CSP class provides an interface for managing CSP pages.You can use it via the special $system object:
Do $SYSTEM.CSP.LoadPage("/user/apps/page.csp","ck")
Method Inventory
- DeleteAllRules()
- DeletePage()
- DeleteRule()
- DeleteRuleFile()
- DisplayConfig()
- FilenameToUrls()
- GetAppName()
- GetClassName()
- GetConfig()
- GetDefaultApp()
- GetFileName()
- GetGatewayRegistry()
- GetPortalApp()
- IsUpToDate()
- LoadPage()
- LoadPageDir()
- LoadRule()
- LoadRuleDir()
- LoadRuleFile()
- SetConfig()
- Shell()
- Show()
- WebPage()
Parameters
Methods
Deletes the CSP rule rulename in the current namespace.
Displays a list of the current CSP configuration parameters, their values and what each of them means.
Return the class name of the class that will be generated from url. If you use a relative URL then you should also specify baseurl which is the URL this page is relative to.
Gets the value of one of the CSP configuration parameters that effect how CSP runs on this entire machine. Pass in the param name and it returns the current value.
The default application may be explicitly defined by going to the desired appliction, setting its namespace, and then checking the Is-Namespace-Default checkbox.
If there is no explicitly defined default, the following rules apply. If /csp/<namespace> is defined then this will be the default application name, otherwise it will return the first CSP application that maps to this namespace.
Return the file name associated with the page url.
- "" if we can not link to portal application in this namespace,
- otherwise return either the default application i.e. /csp/<namespace>/ for this namespace if this is linking to something like ensemble or deepsee portal page which have to run in an application defined in this namespace
- or return /csp/sys/ if this is a system management portal page which always runs in /csp/sys/ application (or subapplication) and handles namespace switching itself.
Load a CSP page from the file pageURL specified as a URL and create a class representation of them. The class created will be compiled unless you pass the qualifier /cspcompileclass=0.
Load all CSP page from the directory dirURL specified as a URL and create a class representation of them. The classes created will be compiled unless you pass the qualifier /cspcompileclass=0.
Loads the CSP rule file file (.csr file) into the current namespace and compiles it.
Loads all the CSP rule files in directory (.csr files) into the current namespace and compiles it.
Loads the CSP rule file url (.csr file) into the current namespace and compiles it.
Set one of the CSP configuration parameters that effect how CSP runs on this entire machine. Pass in the param name and the val that you wish to set.
Provide a command line interface to display CSP pages. This is useful for debugging.
showhttp if false will skip the HTTP headers and the OnPreHTTP callback
session if you pass in an existing %CSP.Session object it will use this one rather than making a new one.