C# 클래스 Microsoft.Research.DataOnboarding.FileService.SkyDriveFileService

상속: FileServiceProvider
파일 보기 프로젝트 열기: CDLUC3/dataup2 1 사용 예제들

공개 메소드들

메소드 설명
CheckIfFileExistsOnExternalRepository ( Microsoft.Research.DataOnboarding.Utilities.Model.VerifyFileMessage verifyFileMessage ) : OperationStatus

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, RepositoryCredentials credentials ) : Microsoft.Research.DataOnboarding.Utilities.Model.DataFile

Downloads the File from Repository

PublishFile ( PublishMessage publishModel ) : string

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 ( PublishMessage message ) : void

Performs the necessary validations required for the file to be published in skydrive

비공개 메소드들

메소드 설명
GetAuthTokens ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository, int userId ) : AuthToken

Returns the AuthToken for the Repository and User

GetOrUpdateAuthTokens ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository, AuthToken userAuthToken ) : AuthToken

Gets or updates the AuthTokens

RefreshAccessToken ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository, AuthToken token ) : AuthToken

validates if the token is expired

SaveFile ( Microsoft.Research.DataOnboarding.Utilities.Model.PostFileModel postFileData ) : bool

메소드 상세

CheckIfFileExistsOnExternalRepository() 공개 메소드

Verifies if the file exists in the repository
public CheckIfFileExistsOnExternalRepository ( Microsoft.Research.DataOnboarding.Utilities.Model.VerifyFileMessage verifyFileMessage ) : OperationStatus
verifyFileMessage Microsoft.Research.DataOnboarding.Utilities.Model.VerifyFileMessage Verify File Message
리턴 Microsoft.Research.DataOnboarding.Utilities.OperationStatus

DownLoadFileFromRepository() 공개 메소드

Downloads the File from Repository
public DownLoadFileFromRepository ( Microsoft.Research.DataOnboarding.DomainModel.File file, Microsoft.Research.DataOnboarding.DomainModel.Repository repository, Microsoft.Research.DataOnboarding.DomainModel.User user, RepositoryCredentials credentials ) : Microsoft.Research.DataOnboarding.Utilities.Model.DataFile
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 Microsoft.Research.DataOnboarding.Utilities.Model.RepositoryCredentials credentials required by the repository.
리턴 Microsoft.Research.DataOnboarding.Utilities.Model.DataFile

PublishFile() 공개 메소드

Method to publish file
public PublishFile ( PublishMessage publishModel ) : string
publishModel Microsoft.Research.DataOnboarding.Utilities.Model.PublishMessage
리턴 string

SkyDriveFileService() 공개 메소드

Initializes a new instance of the SkyDriveFileService class.
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

ValidateForPublish() 공개 메소드

Performs the necessary validations required for the file to be published in skydrive
public ValidateForPublish ( PublishMessage message ) : void
message Microsoft.Research.DataOnboarding.Utilities.Model.PublishMessage Publish Message
리턴 void