class %CSP.UI.System.ApplicationPane
extends %CSP.Util.Pane, %CSP.Page, %CSP.UI.SQL.USER
This class is used internally by Caché. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.
Application Pane for creating and edting applications.
parameter DOMAIN = "%Utility";
Default domain for the Portal's localization.
property ISREADONLY
as %Boolean [ InitialExpression = $$$SMPIsReadOnly($$$EMSApplicationsBit) ];
classmethod AppPageName(TypeIntenal As %Integer)
as %String
Return appllication page based on application type
method DrawBODY(pInstance As PageInstance)
as %Status
Overwritten by subclasses to draw anything this pane needs for the BODY section.
method DrawHEAD(pInstance As PageInstance)
as %Status
Overwritten by subclasses to draw anything this pane needs for the HEAD section.
classmethod DrawTab(ByRef tID As %String, tab As %Integer, AppType As %String)
classmethod DrawTabBox(menuHd As %String, ByRef tID As %String, ByRef tab As %String, t As %Integer, pagename As %String)
Draws unselected tab
method LoadRole(SYSOBJ, tab)
Load both kind of roles:
1. roles that should always loaded
2. matched roles with their associated target roles
method LoadRoutine(SYSOBJ)
Load Routines
classmethod RemoveAllRole(ID1 As %String, tab As %Integer)
as %String
Remove All Roles that will always be added to application if tab = 1
Remove All MatchRoles if tab = 2
classmethod RemoveRole(ID1 As %String, ElementId As %String)
as %String
Remove a Role from a application
If MatchRole is not null, then it is a Matched Role
classmethod RemoveRoutine(ID1 As %String, ElementId As %String)
as %String
Remove a Routine from a privileged routine application
classmethod SaveRole(ID1 As %String, NewMatchElement As %String, MatchRole As %String)
as %String
Save both kind of Roles:
1) Roles that will always be added to application
NewMatchElement passed is in delimited by ":" with the first piece empty
MatchRole = ""
2) Matching roles with their associated target roles
NewMatchElement passed in is delimited by ":" with the first piece not empty
MatchRole = the MatchRole user selected
classmethod SaveRoutine(ID1 As %String, DB As %String, Routine As %String)
as %String
Save a Routine for Privileged Routine Application