C# 클래스 Microsoft.Legal.MatterCenter.Web.Common.DocumentProvision

상속: IDocumentProvision
파일 보기 프로젝트 열기: Microsoft/mattercenter

공개 메소드들

메소드 설명
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