Skip to content

Commit

Permalink
[FIX] Installer Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MakarovS96 committed Jul 10, 2017
1 parent f27f32f commit d4ff3fe
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion cls/kutac/monitor/utils/Installer.cls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,18 @@
<Namespace Name="${Namespace}" Create="no">
<Log Text="Creating web application /csp/${Namespace}" Level="0"/>
<CSPApplication Url='#{$ZCONVERT("/csp/${Namespace}", "L")}' Directory='#{##class(%DeepSee.Report.UI.reportModelServer).GetCSPDirectory()_$ZCONVERT("${Namespace}", "L")}' AuthenticationMethods="64" IsNamespaceDefault="true" Recurse="true" Grant="%All"/>
<CSPApplication Url='#{$ZCONVERT("/csp/${Namespace}", "L")}' Directory='#{##class(%DeepSee.Report.UI.reportModelServer).GetCSPDirectory()_$ZCONVERT("${Namespace}", "L")}' AuthenticationMethods="32" IsNamespaceDefault="true" Recurse="true" Grant="%All"/>
<RunInstall Class="kutac.monitor.utils.Installer" Method="EnableDeepSee"/>
<Log Text="End creating web application /csp/${Namespace}" Level="0"/>
</Namespace>
</If>
<If Condition='(##class(Security.Applications).Exists($ZCONVERT("/sysmon", "L"))=0)'>
<Log Text="Creating web application /sysmon" Level="0"/>
<RunInstall Class="kutac.monitor.utils.Installer" Method="createBrokerApplication"/>
</If>
<Namespace Name="${Namespace}" Create="no" Code="${Namespace}" Data="${Namespace}" Ensemble="">
<Log Text="Mapping SYS.History package to choosed namespace." Level="0"/>
Expand Down Expand Up @@ -629,6 +634,26 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
]]></Implementation>
</Method>

<Method name="createBrokerApplication">
<ClassMethod>1</ClassMethod>
<FormalSpec>pVars,pLogLevel,tInstaller</FormalSpec>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
set Namespace = tInstaller.Evaluate("${Namespace}")
set cspProperties("NameSpace") = Namespace
set cspProperties("IsNameSpaceDefault") = $$$NO
set cspProperties("DispatchClass") = "kutac.REST.ConfigBroker"
set cspProperties("GroupById") = "sysmon"
set cspProperties("MatchRoles") = ":%All"
set cspProperties("CookiePath") = "/"
set tSC = ##class(Security.Applications).Create("/"_$ZCONVERT(Namespace, "l"), .cspProperties)
if $$$ISERR(tSC) throw ##class(%Installer.Exception).CreateFromStatus(tSC)
kill cspProperties, security
quit $$$OK
]]></Implementation>
</Method>

<XData name="DSWSettings">
<MimeType>text/plain</MimeType>
<Data><![CDATA[{"Default":{"addons":"","app":{"language":"en","hideFolders":false,"showImages":true,"isMetro":false},"namespaces":{"widgets":{"mobile/Current Performance Indicators.dashboard":{"ObjPerf":{"sizeY":7,"sizeX":3,"col":6},"GlobPerf":{"col":4,"sizeY":5,"sizeX":2}},"mobile/GloPerf.dashboard":{"w2":{"sizeY":5,"sizeX":10}},"dash/actions/State Info.dashboard":{"Widget1":{"col":0}},"mobile/ObjPerf.dashboard":{"_filters":[{"targetProperty":"[Measurement Date].[H1].[Month]","value":"&[NOW]"},{"targetProperty":"[Measurement Date].[H1].[Day]","value":"&[13]"}]},"mobile/DBSizes.dashboard":{"w2":{"series":{}}}},"tiles":{"mobile/":{"":{"row":0,"col":0,"sizeX":1,"sizeY":1,"color":2,"fontColor":0,"icon":27,"title":""},"CPU Utilization":{"row":0,"col":1,"sizeX":1,"sizeY":1,"color":1,"fontColor":0,"icon":0,"title":"CPU Utilization"},"Current Performance Indicators":{"row":3,"col":2,"sizeX":2,"sizeY":2,"color":1,"fontColor":0,"icon":0,"hideTitle":true,"widget":0,"title":"Current Performance Indicators"},"Current Performance Objects":{"row":0,"col":5,"sizeX":3,"sizeY":3,"color":1,"fontColor":0,"icon":0,"widget":1,"title":"Current Performance Objects","hideTitle":true},"Database Sizes":{"row":0,"col":2,"sizeX":3,"sizeY":3,"color":1,"fontColor":0,"icon":0,"widget":1,"title":"Database Sizes"},"Globals Performance":{"row":4,"col":1,"sizeX":1,"sizeY":1,"color":1,"fontColor":0,"icon":0,"title":"Globals Performance"},"Journal size history":{"row":3,"col":1,"sizeX":1,"sizeY":1,"color":1,"fontColor":0,"icon":0,"title":"Journal size history"},"License History":{"row":2,"col":1,"sizeX":1,"sizeY":1,"color":1,"fontColor":0,"icon":0,"title":"License History"},"Object Performance":{"row":1,"col":1,"sizeX":1,"sizeY":1,"color":1,"fontColor":0,"icon":0,"title":"Object Performance"},"Routines Performance History":{"row":0,"col":8,"sizeX":1,"sizeY":1,"color":1,"fontColor":0,"icon":0,"title":"Routines Performance History"},"Various System Parameters Performance":{"row":3,"col":4,"sizeX":4,"sizeY":2,"color":1,"fontColor":0,"icon":0,"widget":0,"title":"Various System Parameters Performance","hideTitle":true},"WIJ Performance":{"row":0,"col":9,"sizeX":1,"sizeY":1,"color":1,"fontColor":0,"icon":0,"title":"WIJ Performance"},"Current CPU Parameters":{"row":1,"col":8,"sizeX":2,"sizeY":2,"color":1,"fontColor":0,"icon":0,"hideTitle":true,"title":"Current CPU Parameters","widget":0},"Current License Count":{"row":3,"col":8,"sizeX":2,"sizeY":2,"color":1,"fontColor":0,"icon":1,"title":"Current License Count","hideTitle":true,"widget":0}}}}}}
Expand Down

0 comments on commit d4ff3fe

Please sign in to comment.