C# 클래스 UploadDatasources, TabMigrate

Uploads all the Data Sources in a directory tree
상속: TableauServerSignedInRequestBase
파일 보기 프로젝트 열기: tableau/TabMigrate 1 사용 예제들

공개 메소드들

메소드 설명
ExecuteRequest ( ) : void

Upload all the datasource files

UploadDatasources ( TableauServerUrls, onlineUrls, TableauServerSignIn, login, CredentialManager, credentialManager, string localUploadPath, UploadBehaviorProjects, uploadProjectBehavior, CustomerManualActionManager manualActions, bool attemptOwnershipAssignment, IEnumerable siteUsers, int uploadChunkSizeBytes = TableauServerUrls.UploadFileChunkSize, int uploadChunkDelaySeconds ) : System

Constructor

비공개 메소드들

메소드 설명
AttemptOwnerReassignment ( SiteDatasource, datasource, DatasourcePublishSettings, publishSettings, IEnumerable siteUsers ) : bool

Assign ownership

AttemptUploadSingleFile ( string localFilePath, string projectId, CredentialManager, dbCredentials, DatasourcePublishSettings, publishSettings ) : bool

Attempts to upload a single file a Tableau Server, and then make it a published data source

FinalizePublish ( string uploadSessionId, string publishedContentName, string publishedContentType, string projectId, CredentialManager, dbCredentials ) : SiteDatasource,

After a file has been uploaded in chunks, we need to make a call to COMMIT the file to server as a published Data Source

IsValidUploadFile ( string localFilePath ) : bool

Sanity testing on whether the file being uploaded is worth uploading

LogManualAction_ReassignOwnership ( string datasourceName, string ownerName = "", string cause = "" ) : void

A manual step will be required to set the owner of the content

LogManualAction_UploadDataSource ( string filePath ) : void

Log a required manual action

RemoveFileExtensionDot ( string txtIn ) : string

If the file extension has a leading '.', remove it.

UploadDirectoryToServer ( string rootContentPath, string currentContentPath, ProjectFindCreateHelper projectsList, bool recurseDirectories, int &countSuccess, int &countFailure ) : void

Uploads the contents of a directory to server

helper_DetermineContentCredential ( string contentFileName, string projectName ) : CredentialManager.Credential,

Looks to see if there are database associated credentils that should be associated with the content being uploaded

메소드 상세

ExecuteRequest() 공개 메소드

Upload all the datasource files
public ExecuteRequest ( ) : void
리턴 void

UploadDatasources() 공개 메소드

Constructor
public UploadDatasources ( TableauServerUrls, onlineUrls, TableauServerSignIn, login, CredentialManager, credentialManager, string localUploadPath, UploadBehaviorProjects, uploadProjectBehavior, CustomerManualActionManager manualActions, bool attemptOwnershipAssignment, IEnumerable siteUsers, int uploadChunkSizeBytes = TableauServerUrls.UploadFileChunkSize, int uploadChunkDelaySeconds ) : System
onlineUrls TableauServerUrls,
login TableauServerSignIn,
credentialManager CredentialManager,
localUploadPath string
uploadProjectBehavior UploadBehaviorProjects,
manualActions CustomerManualActionManager
attemptOwnershipAssignment bool
siteUsers IEnumerable
uploadChunkSizeBytes int
uploadChunkDelaySeconds int
리턴 System