41 lines
1.4 KiB
VB.net
41 lines
1.4 KiB
VB.net
Imports DigitalData.Modules.EDMI.API.Client
|
|
Imports DigitalData.Modules.EDMI.API.Rights
|
|
|
|
Namespace DocumentResultList
|
|
Public Class Document
|
|
''' <summary>
|
|
''' Primary identifier of the Document.
|
|
''' Can be a Windream DocId or an IDB ObjectId.
|
|
''' </summary>
|
|
Public Property Id As Long
|
|
|
|
''' <summary>
|
|
''' The access right given to the current user for this file
|
|
''' </summary>
|
|
''' <returns></returns>
|
|
Public Property AccessRight As AccessRight
|
|
|
|
''' <summary>
|
|
''' Extension is needed for determining the type of file
|
|
''' and showing it in the DocumentViewer. It is saved without the dot-separator.
|
|
''' </summary>
|
|
Public Property Extension As String
|
|
|
|
''' <summary>
|
|
''' Binary contents of the file.
|
|
''' </summary>
|
|
Public Property Contents As Byte()
|
|
|
|
' Optional properties
|
|
Public Property LastWriteTime As Date = Nothing
|
|
Public Property FullPath As String = Nothing
|
|
Public Property TempPath As String = Nothing
|
|
Public Property FileHash As String = Nothing
|
|
Public Property DocumentType As String = Nothing
|
|
Public Property DisplayFileName As String = Nothing
|
|
|
|
Public Sub New(pPrimaryKey As Long)
|
|
Id = pPrimaryKey
|
|
End Sub
|
|
End Class
|
|
End Namespace |