Home > Class Reference > ENSLIB namespace > %ZEN.Portal.Application

%ZEN.Portal.Application

class %ZEN.Portal.Application extends %ZEN.application

Base Zen application class for portal pages implemented using Zen.

Parameters

parameter APPLICATIONNAME = InterSystems Portal;
This is the name of this application.
parameter DOMAIN = %Utility;
Inherited description: The default domain for csp:text, span and div tags. This parameter is used to specify the subset of localized messages to be used on this page.
parameter HOMEPAGE = /csp/sys/%25CSP.Portal.Home.zen;
This is the URL of the main starting page of this application.

Methods

classmethod %DrawLocatorMenu(ByRef pLocatorMenu As %String) [ Language = objectscript ]
Draw bread-crumb links
classmethod %DrawSmallMenu(ByRef pMenu As %String, ByRef pLocatorMenu As %String) [ Language = objectscript ]
Draw small menu at the top of the title area.
classmethod %DrawTitleHTML(pProduct As %String, pTitle As %String, ByRef pSmallMenu, ByRef pLocatorMenu, ByRef pContextMenu) as %Status [ Language = objectscript ]
Draw the HTML contents of the title area for portal pages. pProduct may contain specific product logo if passed in as the second piece. pContextMenu is passed in for CSP pages only!
classmethod %DrawTitleServerHTML(pProduct As %String, pTitle As %String, ByRef pSmallMenu, ByRef pLocatorMenu) as %Status [ Language = objectscript ]
This method draws the server/namespace/user/license/instance information inside the title pane. pProduct may contain specific server name if passed in as the third piece (for HS debug purposes).
classmethod %OnGetProductName() as %String [ Language = objectscript ]
Get the product name for the page. May be called from none-Zen classes in SMP.
classmethod CanShowSwitch(PageName) as %Boolean [ Language = objectscript ]
Determine if the "Switch" link for namespace can be shown. Return 1 if yes, and 0 if not.
classmethod DrawServerFlag() [ Language = objectscript ]
classmethod DrawUsername() [ Language = objectscript ]
Draw username with (or without) link to change password. The link is built only for the Home page.
Define any context links for the context menu in the header piece 1: caption (if left null, a menu seperator will be built) piece 2: URL (this is required entry) piece 3: JS function name (if defined is a javascript to call such as "zenPage.save()") Note that all security processing is performed in the page's CheckContextLinks() method.
Provide any quick links for pages.

Inherited Methods

%AddToSaveSet() %New() IsPrivate()
%ClassIsLatestVersion() %NormalizeObject() Link()
%ClassName() %ObjectModified() OnHTTPHeader()
%ConstructClone() %OnGetJSResources() OnPage()
%DispatchClassMethod() %OriginalNamespace() OnPageError()
%DispatchGetModified() %PackageName() OnPostHTTP()
%DispatchGetProperty() %RemoveFromSaveSet() OnPostHyperEvent()
%DispatchMethod() %SerializeObject() OnPreHTTP()
%DispatchSetModified() %SetModified() OnPreHyperEvent()
%DispatchSetMultidimProperty() %ValidateObject() Page()
%DispatchSetProperty() ConvertParameter() QuoteJS()
%DrawStyleHTML() Decrypt() RewriteURL()
%Extends() Encrypt() ShowError()
%GetApplicationName() EscapeHTML() StartTimer()
%GetParameter() EscapeURL() StopTimer()
%GetUserPackages() HyperEventCall() ThrowError()
%IsA() HyperEventHead() UnescapeHTML()
%IsModified() Include() UnescapeURL()
%LinkCSS() InsertHiddenField()
%LinkScript() InsertHiddenFields()

Subclasses

%CSP.Portal.Application %DeepSee.UI.Application %WebStress.Portal.Application