Release für ewa

This commit is contained in:
Developer01
2026-03-24 12:42:54 +01:00
parent 1b7c7814bc
commit 8ee84a5ccd
4 changed files with 24 additions and 357 deletions

View File

@@ -298,4 +298,5 @@ Public Class Helpers
Friend Shared Function IsVectorIndex(indexType As Integer)
Return VectorIndicies.Contains(indexType)
End Function
End Class

View File

@@ -4,8 +4,6 @@ Imports System.Text.RegularExpressions
Imports System.Data
Imports DigitalData.Modules.Base
Imports DigitalData.Modules.Logging
Imports WINDREAMLib
Imports WINDREAMLib.WMObjectEditMode
Imports WMOBRWSLib
@@ -1560,6 +1558,29 @@ Public Class Windream
Dim oIndexType As Integer = GetIndexType(IndexName)
Return Helpers.IsVectorIndex(oIndexType)
End Function
Public Function Start_WMCC_andCo()
Try
' 04.10.18: Überprüft, ob der Benutzer Mitglied der SERVER_USER Gruppe ist
' Dim sql = "SELECT T.GUID FROM TBDD_GROUPS_USER T INNER JOIN TBDD_GROUPS T1 on T1.GUID = T.GROUP_ID WHERE T1.NAME = 'SERVER_USER' AND T.USER_ID = " & USER_ID
'Dim userExistsInServerUserGroup = DatabaseFallback.GetScalarValueECM(sql) ', CONNECTION_STRING_ECM, "StartWMCC-userExistsInServerUserGroup")
' If WMSESSION_STARTSTOP_STARTUP = True Then
'And userExistsInServerUserGroup Is Nothing
_logger.Info(">> WINDREAM-Start on ApplicationStart is active!")
Dim owindreamControlCenter = CreateObject("Wmcc.ControlCenter")
Dim owindreamIndexService = CreateObject("WMIndexServer.WMIdxSvControl")
owindreamControlCenter.StartVFSService(1)
System.Threading.Thread.Sleep(1000)
owindreamIndexService.Start()
System.Threading.Thread.Sleep(1500)
' End If
' Create_Session()
Catch ex As Exception
_logger.Error(ex)
_logger.Info("Error while starting up WMCC and IndexService: " & ex.Message, True)
End Try
End Function
#End Region
#Region "Private Methods"