C# Класс TwbDataSourceEditor, TabMigrate

Re-Maps all of the references to published datasources inside a Workbook to point to a different server/site. This transformation is needed to successfully copy a Workbook from one site/server to another site/server.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Execute ( ) : void

Run the file transformation and output the remapped file

TwbDataSourceEditor ( string pathTwbInput, string pathTwbOutput, ITableauServerSiteInfo serverMapInfo, TaskStatusLogs, statusLog ) : System

Constructor

Приватные методы

Метод Описание
RemapDataServerReferences ( XmlDocument xmlDoc, ITableauServerSiteInfo serverMapInfo, TaskStatusLogs, statusLog ) : void
RemapSingleDataServerConnectionNode ( XmlNode xNodeDatasource, ITableauServerSiteInfo serverMapInfo, TaskStatusLogs, statusLog ) : void

Remaps necesary attributes inside of the datasource->connection node to point to a new server

RemapSingleDataServerRepositoryNode ( XmlDocument xmlDoc, XmlNode xNodeDatasource, ITableauServerSiteInfo serverMapInfo, bool ignoreIfMissing, TaskStatusLogs, statusLog ) : void

Remaps the 'repository-location' node of the Data Source XML

RemapSingleWorkbooksRepositoryNode ( XmlDocument xmlDoc, XmlNode xNodeDatasource, ITableauServerSiteInfo serverMapInfo, bool ignoreIfMissing, TaskStatusLogs, statusLog ) : void

Remaps the 'repository-location' node of the Data Source XML

RemapWorkbookGlobalReferences ( XmlDocument xmlDoc, ITableauServerSiteInfo serverMapInfo, TaskStatusLogs, statusLog ) : void

Remaps global references in the workbook that refer to the site/server

helper_SetRespositorySite ( XmlDocument xmlDoc, XmlNode xnodeRepository, ITableauServerSiteInfo serverMapInfo ) : void

Ensures the repository Xml Node has the correct site value

Описание методов

Execute() публичный Метод

Run the file transformation and output the remapped file
public Execute ( ) : void
Результат void

TwbDataSourceEditor() публичный Метод

Constructor
public TwbDataSourceEditor ( string pathTwbInput, string pathTwbOutput, ITableauServerSiteInfo serverMapInfo, TaskStatusLogs, statusLog ) : System
pathTwbInput string
pathTwbOutput string
serverMapInfo ITableauServerSiteInfo
statusLog TaskStatusLogs,
Результат System