메소드 | 설명 | |
---|---|---|
DocumentExists ( string clientUrl, ContentCheckDetails contentCheck, string documentLibraryName, string folderName, bool isMail ) : DuplicateDocument |
|
|
PerformContentCheck ( ) : GenericResponseVM |
|
|
PerformContentCheck ( string clientUrl, string folderUrl, IFormFile uploadedFile, string fileName ) : GenericResponseVM | ||
SaveFields ( Client client, string folderPath, string fileName, MailMetaData mailMetadata, string documentLibraryName ) : void |
Saves the fields for uploaded item in SharePoint library.
|
|
Upload ( Client client, ServiceRequest serviceRequest, string soapRequest, string attachmentOrMailID, bool isMailUpload, string fileName, string folderPath, bool isFirstCall, string &message, string originalFileName ) : GenericResponseVM |
Acts as entry point from service to place the request to upload email/attachment. Reads the web request headers and requests applicable methods based on headers.
|
|
UploadHelperFunctions ( ISPOAuthorization spoAuthorization, IOptions |
메소드 | 설명 | |
---|---|---|
CreateFileInsideFolder ( string folderPath, string filename, string extension, |
To create file inside SharePoint folder
|
|
GetEmailProperties ( |
Get properties of the Email being uploaded
|
|
GetMailProperties ( MailXPath mailXPath, MailMetaData &mailMetaData, |
Get properties of the mail file to be uploaded
|
|
GetPropertyValueFromXml ( string xPath, |
To get property value from the XML node
|
|
GetRecipientsField ( |
To get recipients field from the Email headers
|
|
GetShortDateFromField ( string value ) : string |
To get the short date from the field retrieved from headers
|
|
RetrieveNodeValue ( |
Retrieves the specified node value from XML document
|
|
RetrieveXMLDocument ( |
Retrieves stream from web page and loads in XML document.
|
|
UploadAttachedMailExtBlank ( Client client, string folderPath, string fileName, string documentLibraryName, |
Uploads the .msg file to specified folder in matter library.
|
|
UploadEMLFile ( string documentLibraryName, Client client, string folderPath, string fileName, string &message, |
Uploads the .eml file to specified folder in matter library.
|
|
UploadFilesMail ( bool isOverwrite, bool isContentCheckRequired, bool allowContentCheck, string documentLibraryName, |
Reads the XMLDocument and determines whether the request is to upload entire mail/attachment/.eml file/.msg file and calls respective method.
|
|
UploadFolderUtility ( Client client, string folderPath, string &filename, string extension, |
Checks for folder existence and uploads the mail/attachment to specified folder in matter library. Returns the operation status (success/failure).
|
|
UploadMail ( Client client, string folderPath, string fileName, string documentLibraryName, |
Uploads the email to specified folder in matter library.
|
|
UploadToFolder ( Client client, string folderPath, string filename, string extension, |
Validates the email/attachment and request call to upload the content to specified folder in matter library.
|
public DocumentExists ( string clientUrl, ContentCheckDetails contentCheck, string documentLibraryName, string folderName, bool isMail ) : DuplicateDocument | ||
clientUrl | string | |
contentCheck | ContentCheckDetails | |
documentLibraryName | string | |
folderName | string | |
isMail | bool | |
리턴 | DuplicateDocument |
public PerformContentCheck ( ) : GenericResponseVM | ||
리턴 | GenericResponseVM |
public PerformContentCheck ( string clientUrl, string folderUrl, IFormFile uploadedFile, string fileName ) : GenericResponseVM | ||
clientUrl | string | |
folderUrl | string | |
uploadedFile | IFormFile | |
fileName | string | |
리턴 | GenericResponseVM |
public SaveFields ( Client client, string folderPath, string fileName, MailMetaData mailMetadata, string documentLibraryName ) : void | ||
client | Client | Provider Service client |
folderPath | string | folder path |
fileName | string | Name of the file |
mailMetadata | MailMetaData | MailMetadata object |
documentLibraryName | string | Name of the document library |
리턴 | void |
public Upload ( Client client, ServiceRequest serviceRequest, string soapRequest, string attachmentOrMailID, bool isMailUpload, string fileName, string folderPath, bool isFirstCall, string &message, string originalFileName ) : GenericResponseVM | ||
client | Client | The client object |
serviceRequest | ServiceRequest | The Service request object |
soapRequest | string | The SOAP request |
attachmentOrMailID | string | The attachment or mail identifier. |
isMailUpload | bool | Mail upload check |
fileName | string | Name of the file. |
folderPath | string | The folder path. |
isFirstCall | bool | Determines if it is first call or not |
message | string | Reference object for the message to be returned |
originalFileName | string | Original file name of the attachment |
리턴 | GenericResponseVM |
public UploadHelperFunctions ( ISPOAuthorization spoAuthorization, IOptions |
||
spoAuthorization | ISPOAuthorization | |
errorSettings | IOptions |
|
userRepositoy | IUserRepository | |
documentRepository | IDocumentRepository | |
documentSettings | IOptions |
|
uploadHelperFunctionsUtility | IUploadHelperFunctionsUtility | |
리턴 | Microsoft.AspNetCore.Http |