2023-09-22 13:56:40 +02:00

75 lines
2.5 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>
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 name 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 = ""
''' <summary>
''' Then name of the slt Database. Should contain the tables EXDOCS.
''' Used for fetching the file extension if mime-type matching failed
''' </summary>
Public Property sltDatabase As String = ""
End Class
End Class