Prepare Rights Management in DocumentResults
This commit is contained in:
parent
fbc9a06764
commit
6ab3bef54d
@ -20,5 +20,11 @@ Public Class ClassConfig
|
|||||||
<ConnectionStringAppServer>
|
<ConnectionStringAppServer>
|
||||||
Public Property ConnectionStringAppServer As String = ""
|
Public Property ConnectionStringAppServer As String = ""
|
||||||
<GlobalSetting>
|
<GlobalSetting>
|
||||||
Public Property AppServerConfig As String = ""
|
Public Property AppServerConfig As String = "172.24.12.39:9000"
|
||||||
|
|
||||||
|
Public ReadOnly Property IsIDB As Boolean
|
||||||
|
Get
|
||||||
|
Return AppServerConfig.Length > 0
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@ -132,21 +132,18 @@ Public Class ClassInit
|
|||||||
|
|
||||||
If ConfigManager.Config.AppServerConfig <> String.Empty Then
|
If ConfigManager.Config.AppServerConfig <> String.Empty Then
|
||||||
Try
|
Try
|
||||||
Dim oSplit() = ConfigManager.Config.AppServerConfig.ToString.Split(";")
|
Dim oSplit() As String = ConfigManager.Config.AppServerConfig.ToString.Split(":")
|
||||||
Dim oAppServer = oSplit(0)
|
Dim oAppServerAddress As String = oSplit(0)
|
||||||
Dim oAppServerPort = 9000
|
Dim oAppServerPort As Integer = 9000
|
||||||
If oSplit.Length = 2 Then
|
If oSplit.Length = 2 Then
|
||||||
oAppServerPort = oSplit(1)
|
oAppServerPort = oSplit(1)
|
||||||
End If
|
End If
|
||||||
_Client = New Client(LogConfig, oAppServer, oAppServerPort)
|
_Client = New Client(LogConfig, oAppServerAddress, oAppServerPort)
|
||||||
If Not IsNothing(_Client) Then
|
If Not IsNothing(_Client) Then
|
||||||
If _Client.Connect() Then
|
If _Client.Connect() Then
|
||||||
APPSERVER_ACTIVE = True
|
APPSERVER_ACTIVE = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Logger.Warn($"Could not initialize the AppServer: {ex.Message}")
|
Logger.Warn($"Could not initialize the AppServer: {ex.Message}")
|
||||||
End Try
|
End Try
|
||||||
|
|||||||
@ -269,6 +269,12 @@ Public Class frmMain
|
|||||||
.UserName = USER_USERNAME
|
.UserName = USER_USERNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Dim oService As New State.ServiceState() With {
|
||||||
|
.Address = ConfigManager.Config.AppServerConfig,
|
||||||
|
.IsActive = ConfigManager.Config.IsIDB,
|
||||||
|
.IsOnline = False
|
||||||
|
}
|
||||||
|
|
||||||
Dim oSettings As New State.SettingsState() With {
|
Dim oSettings As New State.SettingsState() With {
|
||||||
.GdPictureKey = GDPICTURE_LICENSE
|
.GdPictureKey = GDPICTURE_LICENSE
|
||||||
}
|
}
|
||||||
@ -277,7 +283,8 @@ Public Class frmMain
|
|||||||
.Database = Database,
|
.Database = Database,
|
||||||
.Modules = Nothing,
|
.Modules = Nothing,
|
||||||
.User = oUser,
|
.User = oUser,
|
||||||
.Settings = oSettings
|
.Settings = oSettings,
|
||||||
|
.Service = oService
|
||||||
}
|
}
|
||||||
|
|
||||||
Return oEnvironment
|
Return oEnvironment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user