Jonathan Jenne 5cf8636e49 30-08-2023
2023-08-30 16:09:32 +02:00

68 lines
2.3 KiB
VB.net

Public Class Config
Public Property ActiveModule As String = "NONE"
''' <summary>
''' This connection string needs to point to the database where the document data will be written to
''' </summary>
''' <returns></returns>
Public Property ConnectionString As String = ""
''' <summary>
''' This query must contain two placeholders:
'''
''' - {0} for ExtDocId
''' - {1} for Filename
'''
''' These placeholders are optional and will be replaced if they are found in the query
''' - [String1]
''' - for Sharepoint Path when Sharepoint Module is used
''' - not used in slt Module
''' </summary>
Public Property SQLQueryExport As String = ""
''' <summary>
''' This query needs to return a table with exactly one column, which represents the ExtDocId
''' </summary>
Public Property SQLQueryFetch As String = ""
Public Property OutputDirectory As String = ""
Public Property AddDateSubDirectory As Boolean = False
Public Property AddImportSubDirectory As Boolean = False
Public Property TimerIntervalMin As Integer = 0
Public Property Debug As Boolean = False
Public Property Autostart As Boolean = True
Public Property sltConfiguration As New sltConfig
Public Property SharepointConfiguration As New SharepointConfig
Public Class SharepointConfig
''' <summary>
''' The connection string of the sharepoint database. Should contain the tables AllDocs and AllDocStreams
''' </summary>
Public Property SharepointDatabase As String = ""
End Class
Public Class sltConfig
''' <summary>
''' Hostname of the slt Server
''' </summary>
Public Property Hostname As String = ""
''' <summary>
''' Post of the slt Server
''' </summary>
Public Property Port As String = ""
''' <summary>
''' Username for authenticating with the slt Server
''' </summary>
Public Property Username As String = ""
''' <summary>
''' Password for authenticating with the slt Server
''' </summary>
Public Property Password As String = ""
''' <summary>
''' System or Mandator to use in slt
''' </summary>
Public Property SystemId As String = ""
End Class
End Class