C# Class 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.
Afficher le fichier Open project: tableau/TabMigrate Class Usage Examples

Méthodes publiques

Méthode Description
Execute ( ) : void

Run the file transformation and output the remapped file

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

Constructor

Private Methods

Méthode Description
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

Method Details

Execute() public méthode

Run the file transformation and output the remapped file
public Execute ( ) : void
Résultat void

TwbDataSourceEditor() public méthode

Constructor
public TwbDataSourceEditor ( string pathTwbInput, string pathTwbOutput, ITableauServerSiteInfo serverMapInfo, TaskStatusLogs, statusLog ) : System
pathTwbInput string
pathTwbOutput string
serverMapInfo ITableauServerSiteInfo
statusLog TaskStatusLogs,
Résultat System