@@ -106,7 +106,7 @@ ClassMethod ExportPTD(internalName As %String, nameMethod) As %Status
106
106
ClassMethod ExportConfigItemSettings (productionClass As %String , item As %RegisteredObject , nameMethod As %String , Output internalName As %String ) As %Status
107
107
{
108
108
set internalName = ..CreateInternalName (productionClass , item .Name , item .ClassName , 0 )
109
- Set externalName = $ClassMethod ($$SrcCtrlCls ^%buildccr , nameMethod , internalName )
109
+ Set externalName = $ClassMethod (##class ( %Studio.SourceControl.Interface ). SourceControlClassGet () , nameMethod , internalName )
110
110
Set filename = ##class (%File ).NormalizeFilename (externalName )
111
111
set st = ##class (Ens.Deployment.Utils ).CreatePTDFromItem (.item , .ptdName )
112
112
$$$QuitOnError(st )
@@ -125,7 +125,7 @@ ClassMethod ExportProductionSettings(productionClass As %String, nameMethod As %
125
125
If $$$ISERR(sc ) {
126
126
Return sc
127
127
}
128
- Set externalName = $ClassMethod ($$SrcCtrlCls ^%buildccr , nameMethod , internalName )
128
+ Set externalName = $ClassMethod (##class ( %Studio.SourceControl.Interface ). SourceControlClassGet () , nameMethod , internalName )
129
129
Set filename = ##class (%File ).NormalizeFilename (externalName )
130
130
set sc = ..ExportProjectForPTD (productionClass , ptdName , filename )
131
131
Return sc
@@ -172,16 +172,16 @@ ClassMethod GetModifiedItemsBeforeSave(internalName, Location, Output modifiedIt
172
172
// FUTURE: implement this to support Studio
173
173
}
174
174
// populate data for use in OnAfterSave
175
- kill ^mtempsscProd ( $job ," modifiedItems" )
176
- merge ^mtempsscProd ( $job ," modifiedItems" ) = modifiedItems
175
+ kill ^IRIS . Temp ( " sscProd " , $job ," modifiedItems" )
176
+ merge ^IRIS . Temp ( " sscProd " , $job ," modifiedItems" ) = modifiedItems
177
177
// FUTURE: use a percent variable or PPG instead
178
- kill ^mtempsscProd ( $job ," items" )
178
+ kill ^IRIS . Temp ( " sscProd " , $job ," items" )
179
179
set rs = ##class (%SQL.Statement ).%ExecDirect (
180
180
," select Name, ClassName from Ens_Config.Item where Production = ?"
181
181
, productionName )
182
182
$$$ThrowSQLIfError(rs .%SQLCODE , rs .%Message )
183
183
while rs .%Next () {
184
- set ^mtempsscProd ( $job ," items" ,$listbuild (rs .Name , rs .ClassName )) = 1
184
+ set ^IRIS . Temp ( " sscProd " , $job ," items" ,$listbuild (rs .Name , rs .ClassName )) = 1
185
185
}
186
186
}
187
187
@@ -196,22 +196,22 @@ ClassMethod GetModifiedItemsAfterSave(internalName, Output modifiedItems)
196
196
, productionName )
197
197
$$$ThrowSQLIfError(rs .%SQLCODE , rs .%Message )
198
198
while rs .%Next () {
199
- if '$get (^mtempsscProd ( $job ," items" , $listbuild (rs .Name , rs .ClassName ))) {
199
+ if '$get (^IRIS . Temp ( " sscProd " , $job ," items" , $listbuild (rs .Name , rs .ClassName ))) {
200
200
set itemInternalName = ..CreateInternalName (productionName , rs .Name , rs .ClassName , 0 )
201
201
set modifiedItems (itemInternalName ) = " A"
202
202
}
203
- kill ^mtempsscProd ( $job ," items" , $listbuild (rs .Name , rs .ClassName ))
203
+ kill ^IRIS . Temp ( " sscProd " , $job ," items" , $listbuild (rs .Name , rs .ClassName ))
204
204
}
205
- set key = $order (^mtempsscProd ( $job ," items" ," " ))
205
+ set key = $order (^IRIS . Temp ( " sscProd " , $job ," items" ," " ))
206
206
while (key '= " " ) {
207
207
set itemInternalName = ..CreateInternalName (productionName , $listget (key ,1 ), $listget (key ,2 ), 0 )
208
208
set modifiedItems (itemInternalName ) = " D"
209
- set key = $order (^mtempsscProd ( $job ," items" ,key ))
209
+ set key = $order (^IRIS . Temp ( " sscProd " , $job ," items" ,key ))
210
210
}
211
211
// If editing from SMP, get the modified items from a cache stored in OnBeforeSave.
212
212
// Only do this if there are no added/deleted items, because otherwise production settings will be incorrectly included.
213
213
if '$data (modifiedItems ) {
214
- merge modifiedItems = ^mtempsscProd ( $job ," modifiedItems" )
214
+ merge modifiedItems = ^IRIS . Temp ( " sscProd " , $job ," modifiedItems" )
215
215
}
216
216
} else {
217
217
// If editing/adding/deleting from Studio, get the modified items from a percent variable set in OnBeforeSave.
@@ -234,7 +234,7 @@ ClassMethod IsProductionClass(className As %String, nameMethod As %String) As %B
234
234
if (className '= " " ) && $$$comClassDefined(className ) {
235
235
return $classmethod (className , " %Extends" , " Ens.Production" )
236
236
} else {
237
- set filename = $classmethod ($$SrcCtrlCls ^%buildccr , nameMethod , className _" .CLS" )
237
+ set filename = $classmethod (##class ( %Studio.SourceControl.Interface ). SourceControlClassGet () , nameMethod , className _" .CLS" )
238
238
if ##class (%File ).Exists (filename ) {
239
239
$$$ThrowOnError($System .OBJ .Load (filename ))
240
240
}
@@ -314,7 +314,7 @@ ClassMethod RemoveItemByExternalName(externalName, nameMethod) As %Status
314
314
for i =1 :1 :production .Items .Count () {
315
315
set configItem = production .Items .GetAt (i )
316
316
set itemInternalName = ..CreateInternalName (productionName , configItem .Name , configItem .ClassName )
317
- set itemExternalName = $classmethod ($$SrcCtrlCls ^%buildccr , nameMethod , itemInternalName )
317
+ set itemExternalName = $classmethod (##class ( %Studio.SourceControl.Interface ). SourceControlClassGet () , nameMethod , itemInternalName )
318
318
if itemExternalName = externalName {
319
319
set itemToRemove = configItem
320
320
quit
0 commit comments