Method | Description | |
---|---|---|
CheckIfFileExists ( string downloadURL, string fileIdentifier, string authorization ) : |
Verifies if the file exists in the repository
|
|
DownloadFile ( string downloadUrl, string authorization, string fileName ) : Microsoft.Research.DataOnboarding.Utilities.Model.DataFile |
Method to download the file from the repository.
|
|
RefreshToken ( string refreshToken ) : |
Retrives the Access token by passing refresh token
|
|
SkyDriveAdapter ( ) : Microsoft.Research.DataOnboarding.DomainModel |
Initializes a new instance of the SkyDriveAdapter class.
|
Method | Description | |
---|---|---|
CreateFolder ( string folderName, string parentFolderId, |
Creates the folder.
|
|
CreateFolderForFile ( string repositoryName, string fileId, string fileName, |
The method creates the folder structure to upload the file
|
|
DownloadFile ( string fileId, string fileName, string tempFolderPath, |
Downloads the file to a temp location
|
|
DownloadFile ( string fileId, |
Downloads the file and returns the byte array
|
|
GetChildFolders ( string parentFolderId, |
Returns the list of child folder.
|
|
GetFolder ( string folderName, string parentFolderId, |
Returns the Folder Id.
|
|
GetIdentifier ( MerritQueryData queryData, |
||
GetOrCreateFolder ( string folderName, string parentFolderId, |
Checks if the folder exists and if not then creates
|
|
GetRootFolder ( |
Gets the Root Folder.
|
|
PostFile ( |
||
UploadFile ( Microsoft.Research.DataOnboarding.Utilities.Model.PublishSkyDriveFileModel publishSkyDriveFileModel ) : string |
uploads the file to skydrive
|
public CheckIfFileExists ( string downloadURL, string fileIdentifier, string authorization ) : |
||
downloadURL | string | |
fileIdentifier | string | File Identifier |
authorization | string | AccessToken in case of skydrive and username password for Merrit |
return |
public DownloadFile ( string downloadUrl, string authorization, string fileName ) : Microsoft.Research.DataOnboarding.Utilities.Model.DataFile | ||
downloadUrl | string | |
authorization | string | |
fileName | string | |
return | Microsoft.Research.DataOnboarding.Utilities.Model.DataFile |
public RefreshToken ( string refreshToken ) : |
||
refreshToken | string | refresh Token |
return |
public SkyDriveAdapter ( ) : Microsoft.Research.DataOnboarding.DomainModel | ||
return | Microsoft.Research.DataOnboarding.DomainModel |