메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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 |
리턴 |
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. | |
리턴 | Microsoft.Research.DataOnboarding.Utilities.Model.DataFile |
public PublishFile ( |
||
publishModel | ||
리턴 | 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. |
리턴 | Microsoft.Research.DataOnboarding.DataAccessService |
public ValidateForPublish ( |
||
message | Publish Message | |
리턴 | void |