Home > Class Reference > %SYS namespace > %Studio.SourceControl.UI

%Studio.SourceControl.UI

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

Dialog for checking in files to Perforce

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: //iris/2020.3.0/databases/sys/cls/Studio/SourceControl/UI.xml#1 $;
This Parameter should be updated when synced from Perforce
parameter Version = 76;
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 [ Language = objectscript ]
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) [ Language = objectscript ]
classmethod CheckinDisplay(DisplayForm As %Boolean) [ Language = objectscript ]
classmethod ConvertStreamToHTML(pStream) as %Stream.GlobalCharacter [ Language = objectscript ]
classmethod DiffDisplay() [ Language = objectscript ]
Displays a diff between the file passes in the file url parameter and file_".bak" if it exists
classmethod DiffEnabled() as %Boolean [ Language = objectscript ]
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) [ Language = objectscript ]
classmethod DscheckpointDisplay(DisplayForm As %Boolean) [ Language = objectscript ]
runs the DSCheckpointExport() method
classmethod GetParameter(Parameter) as %String [ Language = objectscript ]
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 [ Language = objectscript ]
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) [ Language = objectscript ]
classmethod LoadDisplay(DisplayForm As %Boolean) [ Language = objectscript ]
classmethod LoginDisplay(Output pContinue As %Boolean = 1) [ Language = objectscript ]
If login needed (connected multi-developer instance), displays/processes the login form. Other UIs can call this and examine pLoggedIn to determine if processing should continue.
classmethod MenuDisplay() [ Language = objectscript ]
classmethod OnPage() as %Status [ Language = objectscript ]
Event handler for PAGE event: this is invoked in order to generate the content of a csp page.
classmethod OnPreHTTP() as %Boolean [ Language = objectscript ]
Ensure that this page is only accessible through approved CSP Applications
classmethod PerforceLoggedIn() as %Boolean [ Language = objectscript ]
Returns true if the user has a valid Perforce ticket in the CSP session, otherwise returns false.
Also obtains and validate an existing ticket.
This also 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 [ Language = objectscript ]
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) [ Language = objectscript ]
classmethod RetrieveCCRDetails(pRID="", pToken="") [ Language = objectscript ]
Retrieve details of the requested CCR and update the UI with the details
Link to this page
classmethod SummaryDisplay() [ Language = objectscript ]
classmethod UpdateSession() [ Language = objectscript ]
classmethod UploadDisplay(DisplayForm As %Boolean) [ Language = objectscript ]
classmethod ValidateCCRUpload(pRID="") [ Language = objectscript ]
Called from UI Bundle page to validate whether an ItemSet can be uploaded for a given CCR Updates elements on the page according to the status

Inherited Methods

%ClassIsLatestVersion() %SetModified() OnErrorSetup()
%ClassName() ConvertParameter() OnHTTPHeader()
%DispatchClassMethod() Decrypt() OnPageError()
%DispatchGetModified() Encrypt() OnPostHTTP()
%DispatchGetProperty() EscapeHTML() OnPostHyperEvent()
%DispatchMethod() EscapeURL() OnPreHyperEvent()
%DispatchSetModified() HyperEventCall() Page()
%DispatchSetMultidimProperty() HyperEventHead() QuoteJS()
%DispatchSetProperty() Include() RewriteURL()
%Extends() InsertHiddenField() ShowError()
%GetParameter() InsertHiddenFields() StartTimer()
%IsA() IsEnabled() StopTimer()
%New() IsPrivate() ThrowError()
%OriginalNamespace() Link() UnescapeHTML()
%PackageName() LocalizeName() UnescapeURL()