Home > Class Reference > ENSLIB namespace > %Studio.SourceControl.UI
Private  Storage   

%Studio.SourceControl.UI


class %Studio.SourceControl.UI extends %CSP.StudioTemplateSuper

Dialog for checking in files to Perforce

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 25


Summary


Methods
%ClassIsLatestVersion %ClassName %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %Extends %GetParameter %IsA
%New %OriginalNamespace %PackageName %SetModified
AllowedApps BundleDisplay CheckinDisplay ConvertParameter
ConvertStreamToHTML Decrypt DiffDisplay DiffEnabled
DownloadDisplay DscheckpointDisplay Encrypt EscapeHTML
EscapeURL GetParameter HyperEventCall HyperEventHead
Include InsertHiddenField InsertHiddenFields InstanceVersion
IsEnabled IsPrivate ItemsetlogDisplay Link
LoadDisplay LocalizeName MenuDisplay OnErrorSetup
OnHTTPHeader OnPage OnPageError OnPostHTTP
OnPostHyperEvent OnPreHTTP OnPreHyperEvent Page
PerforceLoggedIn PerforceLogin QuoteJS RefreshDisplay
RewriteURL SelfLink ShowError StartTimer
StopTimer SummaryDisplay ThrowError UnescapeHTML
UnescapeURL UpdateSession UploadDisplay


Parameters


• parameter SECURITYRESOURCE;
Do not accept the default SECURITYRESOURCE from the superclass as this page handles it's own security to allow TrakCare use-cases

NOTE - this parameter is not enforced until 3012.2

• parameter SrcVer = "$Id: //ce/2018.1.4/databases/sys/cls/Studio/SourceControl/UI.xml#1 $";
This Parameter should be updated when synced from Perforce
• parameter Version = 56;
Revision number of this class when compiled as part of the //custom_ccrs/_common/config/... branch. This version will not be updated (by design) when the class is integrated to other branches. This allows the user to tell what version of the Studio client tools are in use.

Methods


• classmethod AllowedApps() as %String
CSP Applications allowed to access this UI.

To add web applications to the return list, set ^%SYS("SourceControl","AllowedApps")=$lb(app1,app2,...). NOTE: app1, app2, etc must have a trailing '/', e.g. ^%SYS("SourceControl","AllowedApps")=$lb("/csp/users/")

• classmethod BundleDisplay(DisplayForm As %Boolean)
• classmethod CheckinDisplay(DisplayForm As %Boolean)
• classmethod ConvertStreamToHTML(pStream) as %Stream.GlobalCharacter
• classmethod DiffDisplay()
Displays a diff between the file passes in the file url parameter and file_".bak" if it exists
• classmethod DiffEnabled() as %Boolean
Returns boolean value indicated whether or not the diff UI can be displayed

Set ^SYS("SourceControl","UIConfig","DisableDiff")=1 to disable diff for a specific namespace

Set ^%SYS("SourceControl","UIConfig","DisableDiff")=1 to disable diff for the entire instance

• classmethod DownloadDisplay(DisplayForm As %Boolean)
• classmethod DscheckpointDisplay(DisplayForm As %Boolean)
runs the DSCheckpointExport() method
• classmethod GetParameter(Parameter) as %String
Pages inheriting from %CSP.Page don't have a %GetParameter() method until 2010.2. This method allows access to the parameter values in the class from outside of the class
• classmethod InstanceVersion() as %Numeric
Returns value the Major.Minor version for this instance, so it can be used in comparison code which makes sure certain features are used in appropriate versions
• classmethod ItemsetlogDisplay(DisplayForm As %Boolean)
• classmethod LoadDisplay(DisplayForm As %Boolean)
• classmethod MenuDisplay()
• classmethod OnPage() as %Status
Event handler for PAGE event: this is invoked in order to generate the content of a csp page.
• classmethod OnPreHTTP() as %Boolean
Ensure that this page is only accessible through approved CSP Applications
• classmethod PerforceLoggedIn() as %Boolean
Returns true if the user has a valid Perforce ticket in the CSP session, otherwise returns false.
This als inializes the process ticket variable, so this must be called whenever a server-side method requiring Perforce access is invoked
• classmethod PerforceLogin(Password) as %Status
Accepts the password for the current Perforce user (defined by $USERNAME) and validates password by attempting to log into Perforce and obtain a IP-bound ticket
If login is successful, ticket is stored in the session to be reused on later calls to Perforce
If Password is not defined, then the locally cached ticket will be cleared
• classmethod RefreshDisplay(DisplayForm As %Boolean)
• classmethod SelfLink()
Link to this page
• classmethod SummaryDisplay()
• classmethod UpdateSession()
• classmethod UploadDisplay(DisplayForm As %Boolean)