Method | Description | |
---|---|---|
CheckIfFileExistsOnExternalRepository ( Microsoft.Research.DataOnboarding.Utilities.Model.VerifyFileMessage verifyFileMessage ) : |
Verifies if the file exists in the repository
|
|
DownLoadFileFromRepository ( Microsoft.Research.DataOnboarding.DomainModel.File file, Microsoft.Research.DataOnboarding.DomainModel.Repository repository, Microsoft.Research.DataOnboarding.DomainModel.User user, |
Downloads the File from Repository
|
|
PublishFile ( |
Method to publish file
|
|
SkyDriveFileService ( IFileRepository fileDataRepository, IBlobDataRepository blobDataRepository, IUnitOfWork unitOfWork, IRepositoryDetails repositoryDetails, IRepositoryService repositoryService, IUserService userService, IRepositoryAdapterFactory repositoryAdapterFactory ) : Microsoft.Research.DataOnboarding.DataAccessService |
Initializes a new instance of the SkyDriveFileService class.
|
|
ValidateForPublish ( |
Performs the necessary validations required for the file to be published in skydrive
|
Method | Description | |
---|---|---|
GetAuthTokens ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository, int userId ) : |
Returns the AuthToken for the Repository and User
|
|
GetOrUpdateAuthTokens ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository, |
Gets or updates the AuthTokens
|
|
RefreshAccessToken ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository, |
validates if the token is expired
|
|
SaveFile ( Microsoft.Research.DataOnboarding.Utilities.Model.PostFileModel postFileData ) : bool |
public CheckIfFileExistsOnExternalRepository ( Microsoft.Research.DataOnboarding.Utilities.Model.VerifyFileMessage verifyFileMessage ) : |
||
verifyFileMessage | Microsoft.Research.DataOnboarding.Utilities.Model.VerifyFileMessage | Verify File Message |
return |
public DownLoadFileFromRepository ( Microsoft.Research.DataOnboarding.DomainModel.File file, Microsoft.Research.DataOnboarding.DomainModel.Repository repository, Microsoft.Research.DataOnboarding.DomainModel.User user, |
||
file | Microsoft.Research.DataOnboarding.DomainModel.File | File object. |
repository | Microsoft.Research.DataOnboarding.DomainModel.Repository | Repository instance. |
user | Microsoft.Research.DataOnboarding.DomainModel.User | User instance. |
credentials | credentials required by the repository. | |
return | Microsoft.Research.DataOnboarding.Utilities.Model.DataFile |
public PublishFile ( |
||
publishModel | ||
return | string |
public SkyDriveFileService ( IFileRepository fileDataRepository, IBlobDataRepository blobDataRepository, IUnitOfWork unitOfWork, IRepositoryDetails repositoryDetails, IRepositoryService repositoryService, IUserService userService, IRepositoryAdapterFactory repositoryAdapterFactory ) : Microsoft.Research.DataOnboarding.DataAccessService | ||
fileDataRepository | IFileRepository | IFileRepository instance. |
blobDataRepository | IBlobDataRepository | IBlobDataRepository instance. |
unitOfWork | IUnitOfWork | IUnitOfWork instance. |
repositoryDetails | IRepositoryDetails | IRepositoryDetails instance. |
repositoryService | IRepositoryService | IRepositoryService instance. |
userService | IUserService | IUserService instance |
repositoryAdapterFactory | IRepositoryAdapterFactory | IRepositoryAdapterFactory instance. |
return | Microsoft.Research.DataOnboarding.DataAccessService |
public ValidateForPublish ( |
||
message | Publish Message | |
return | void |