InterSystems IRIS Data Platform 2021.1Opens in a new window > Class Reference > ENSLIB namespace > %CSP.Portal.SourceControl.Util


abstract class %CSP.Portal.SourceControl.Util

Method Inventory


classmethod CreateSourceControl(Output pSourceControl As %Studio.SourceControl.Base, Output pCreated As %Boolean, Output pUsername As %String, pUserData As %ZEN.proxyObject = "") as %Status [ Language = objectscript ]
Create an instance of a Source Control object
classmethod GetCurrentProject(Output pLoaded As %Boolean) as %String [ Language = objectscript, ZenMethod ]
Helper method to retrieve the current project for the CSP session, along with a flag to indicate whether the OnBeforeLoad() and OnAfterLoad() source control hooks have been executed for the project.
classmethod GetFullProjectName(pProjectName As %String = "") [ Language = objectscript ]
Return a project's full name, including a ".PRJ" extension.
classmethod GetSourceControlClass() as %String [ Language = objectscript ]
Return the source control class which is to be used in the current namespace. If source control hooks are not enabled, an empty string is returned.
classmethod IsEnabled(pNamespace As %String = $namespace) as %Boolean [ Language = objectscript ]
Determine whether source control is enabled for the Management Portal in the specified namespace. The default is to return the flag for the current namespace.
classmethod IsProjectRequired() as %Boolean [ Language = objectscript ]
Helper method to indicate whether the source control hooks in the current production-enabled namespace need a project defined.
classmethod SetCurrentProject(pProjectName As %String, pLoaded As %Boolean = 0) [ Language = objectscript, ZenMethod ]
Helper method to save the name of the current project and whether its OnBeforeLoad() and OnAfterLoad() callbacks have been executed. The data is saved in the current CSP session data, so will be cleaned up when the user logs out.
classmethod SetProjectRequired(pNewValue As %Boolean = 0, Output pOldValue As %Boolean) as %Status [ Language = objectscript ]
Enable or disable the flag indicating whether the source control class used in the current namespace requires a specific project to be selected for the source control hooks to operate correctly.


FeedbackOpens in a new window