C# Класс Microsoft.Legal.MatterCenter.Web.Common.DocumentProvision

Наследование: IDocumentProvision
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckDuplicateDocument ( string clientUrl, string folderName, string documentLibraryName, string fileName, ContentCheckDetails contentCheck, bool allowContentCheck ) : GenericResponseVM
DocumentProvision ( IDocumentRepository docRepository, IUserRepository userRepository, IUploadHelperFunctions uploadHelperFunctions, IOptions generalSettings, IOptions documentSettings, ICustomLogger customLogger, IOptions searchSettings, IConfigurationRoot configuration, IHttpContextAccessor httpContextAccessor, IOptions logTables, IOptions errorSettings ) : System
DownloadAttachments ( MailAttachmentDetails mailAttachmentDetails ) : Stream
GetAllCounts ( SearchRequestVM searchRequestVM ) : Task
GetDocumentsAsync ( SearchRequestVM searchRequestVM ) : Task
GetMyCounts ( SearchRequestVM searchRequestVM ) : Task
GetPinnedCounts ( SearchRequestVM searchRequestVM ) : Task
GetPinnedDocumentsAsync ( SearchRequestVM searchRequestVM ) : Task

get the documents async

GetUniqueColumnName ( string uniueColumnName ) : string

to get column name

GetUniqueResults ( SearchRequestVM searchRequestVM, dynamic searchResultsVM ) : dynamic

getting unique results for this.

PerformContentCheck ( string clientUrl, string folderUrl, IFormFile uploadedFile, string fileName ) : GenericResponseVM
ReturnExtension ( string fileExtension ) : string

Gets the file content type based on specified extensions.

UploadAttachments ( AttachmentRequestVM attachmentRequestVM ) : GenericResponseVM
UploadEmails ( AttachmentRequestVM attachmentRequestVM ) : GenericResponseVM
UploadFiles ( IFormFile uploadedFile, string fileExtension, string originalName, string folderName, string fileName, string clientUrl, string folder, string documentLibraryName ) : GenericResponseVM

Приватные методы

Метод Описание
ContinueUpload ( IFormFile uploadedFile, string fileExtension ) : string>.Dictionary
GenerateEmail ( Stream>.Dictionary collectionOfAttachments, string documentUrls, bool attachmentFlag ) : Stream
GetMailAsStream ( Stream>.Dictionary collectionOfAttachments, string documentUrls, bool attachmentFlag ) : MemoryStream

Forms the memory stream of the mail with attachments.

Описание методов

CheckDuplicateDocument() публичный Метод

public CheckDuplicateDocument ( string clientUrl, string folderName, string documentLibraryName, string fileName, ContentCheckDetails contentCheck, bool allowContentCheck ) : GenericResponseVM
clientUrl string
folderName string
documentLibraryName string
fileName string
contentCheck Microsoft.Legal.MatterCenter.Models.ContentCheckDetails
allowContentCheck bool
Результат Microsoft.Legal.MatterCenter.Models.GenericResponseVM

DocumentProvision() публичный Метод

public DocumentProvision ( IDocumentRepository docRepository, IUserRepository userRepository, IUploadHelperFunctions uploadHelperFunctions, IOptions generalSettings, IOptions documentSettings, ICustomLogger customLogger, IOptions searchSettings, IConfigurationRoot configuration, IHttpContextAccessor httpContextAccessor, IOptions logTables, IOptions errorSettings ) : System
docRepository IDocumentRepository
userRepository IUserRepository
uploadHelperFunctions IUploadHelperFunctions
generalSettings IOptions
documentSettings IOptions
customLogger ICustomLogger
searchSettings IOptions
configuration IConfigurationRoot
httpContextAccessor IHttpContextAccessor
logTables IOptions
errorSettings IOptions
Результат System

DownloadAttachments() публичный Метод

public DownloadAttachments ( MailAttachmentDetails mailAttachmentDetails ) : Stream
mailAttachmentDetails Microsoft.Legal.MatterCenter.Models.MailAttachmentDetails
Результат Stream

GetAllCounts() публичный Метод

public GetAllCounts ( SearchRequestVM searchRequestVM ) : Task
searchRequestVM Microsoft.Legal.MatterCenter.Models.SearchRequestVM
Результат Task

GetDocumentsAsync() публичный Метод

public GetDocumentsAsync ( SearchRequestVM searchRequestVM ) : Task
searchRequestVM Microsoft.Legal.MatterCenter.Models.SearchRequestVM
Результат Task

GetMyCounts() публичный Метод

public GetMyCounts ( SearchRequestVM searchRequestVM ) : Task
searchRequestVM Microsoft.Legal.MatterCenter.Models.SearchRequestVM
Результат Task

GetPinnedCounts() публичный Метод

public GetPinnedCounts ( SearchRequestVM searchRequestVM ) : Task
searchRequestVM Microsoft.Legal.MatterCenter.Models.SearchRequestVM
Результат Task

GetPinnedDocumentsAsync() публичный Метод

get the documents async
public GetPinnedDocumentsAsync ( SearchRequestVM searchRequestVM ) : Task
searchRequestVM Microsoft.Legal.MatterCenter.Models.SearchRequestVM
Результат Task

GetUniqueColumnName() публичный Метод

to get column name
public GetUniqueColumnName ( string uniueColumnName ) : string
uniueColumnName string
Результат string

GetUniqueResults() публичный Метод

getting unique results for this.
public GetUniqueResults ( SearchRequestVM searchRequestVM, dynamic searchResultsVM ) : dynamic
searchRequestVM Microsoft.Legal.MatterCenter.Models.SearchRequestVM
searchResultsVM dynamic
Результат dynamic

PerformContentCheck() публичный Метод

public PerformContentCheck ( string clientUrl, string folderUrl, IFormFile uploadedFile, string fileName ) : GenericResponseVM
clientUrl string
folderUrl string
uploadedFile IFormFile
fileName string
Результат Microsoft.Legal.MatterCenter.Models.GenericResponseVM

ReturnExtension() публичный статический Метод

Gets the file content type based on specified extensions.
public static ReturnExtension ( string fileExtension ) : string
fileExtension string Extension of the file
Результат string

UploadAttachments() публичный Метод

public UploadAttachments ( AttachmentRequestVM attachmentRequestVM ) : GenericResponseVM
attachmentRequestVM Microsoft.Legal.MatterCenter.Models.AttachmentRequestVM
Результат Microsoft.Legal.MatterCenter.Models.GenericResponseVM

UploadEmails() публичный Метод

public UploadEmails ( AttachmentRequestVM attachmentRequestVM ) : GenericResponseVM
attachmentRequestVM Microsoft.Legal.MatterCenter.Models.AttachmentRequestVM
Результат Microsoft.Legal.MatterCenter.Models.GenericResponseVM

UploadFiles() публичный Метод

public UploadFiles ( IFormFile uploadedFile, string fileExtension, string originalName, string folderName, string fileName, string clientUrl, string folder, string documentLibraryName ) : GenericResponseVM
uploadedFile IFormFile
fileExtension string
originalName string
folderName string
fileName string
clientUrl string
folder string
documentLibraryName string
Результат Microsoft.Legal.MatterCenter.Models.GenericResponseVM