C# Class JDP.Remediation.Console.ReplaceWebPart

ファイルを表示 Open project: OfficeDev/PnP-Transformation Class Usage Examples

Public Properties

Property Type Description
filePath string
outputPath string
timeStamp string

Public Methods

Method Description
ConfigureNewWebPartXmlFile ( string targetWebPartXmlFilePath, string sourceXmlFile, string OutPutDirectory ) : void
DoWork ( ) : void
ReadInputFile ( string &webPartsInputFile ) : bool
ReplaceWebPartInPage ( string webUrl, string targetWebPartFileName, string targetWebPartXmlFile, string sourceWebPartStorageKey, string webPartZoneIndex, string webPartZoneID, string serverRelativePageUrl, string outPutDirectory, string sourceWebPartId = "" ) : bool
ReplaceWebPart_UsingCSV ( string sourceWebPartType, string targetWebPartXmlFilePath, string targetWebPartFileName, string targetWebPartXmlDir, string usageFileName, string outPutFolder ) : void
SetExceptionCSVWebAppSiteColWebUrls ( string webUrl ) : void
TransformWebPart_UsingCSV ( string usageFileName, string sourceWebPartType, string targetWebPartFileName, string targetWebPartXmlFilePath, string outPutDirectory ) : void
WebPart_Initialization ( string DiscoveryUsage_OutPutFolder ) : void

Private Methods

Method Description
GetPageRelativeURL ( string WebUrl, string PageUrl ) : string
GetTargetWebPartXmlFilePath ( string webPartId, string targetDirectory ) : string
GetWebPartID ( string webPartID ) : string
ReadWebPartUsageCSV ( string sourceWebPartType, string usageFilePath, string outPutFolder, IEnumerable &objWPDInput ) : void

Method Details

ConfigureNewWebPartXmlFile() public static method

public static ConfigureNewWebPartXmlFile ( string targetWebPartXmlFilePath, string sourceXmlFile, string OutPutDirectory ) : void
targetWebPartXmlFilePath string
sourceXmlFile string
OutPutDirectory string
return void

DoWork() public static method

public static DoWork ( ) : void
return void

ReadInputFile() public static method

public static ReadInputFile ( string &webPartsInputFile ) : bool
webPartsInputFile string
return bool

ReplaceWebPartInPage() public static method

public static ReplaceWebPartInPage ( string webUrl, string targetWebPartFileName, string targetWebPartXmlFile, string sourceWebPartStorageKey, string webPartZoneIndex, string webPartZoneID, string serverRelativePageUrl, string outPutDirectory, string sourceWebPartId = "" ) : bool
webUrl string
targetWebPartFileName string
targetWebPartXmlFile string
sourceWebPartStorageKey string
webPartZoneIndex string
webPartZoneID string
serverRelativePageUrl string
outPutDirectory string
sourceWebPartId string
return bool

ReplaceWebPart_UsingCSV() public static method

public static ReplaceWebPart_UsingCSV ( string sourceWebPartType, string targetWebPartXmlFilePath, string targetWebPartFileName, string targetWebPartXmlDir, string usageFileName, string outPutFolder ) : void
sourceWebPartType string
targetWebPartXmlFilePath string
targetWebPartFileName string
targetWebPartXmlDir string
usageFileName string
outPutFolder string
return void

SetExceptionCSVWebAppSiteColWebUrls() public static method

public static SetExceptionCSVWebAppSiteColWebUrls ( string webUrl ) : void
webUrl string
return void

TransformWebPart_UsingCSV() public static method

public static TransformWebPart_UsingCSV ( string usageFileName, string sourceWebPartType, string targetWebPartFileName, string targetWebPartXmlFilePath, string outPutDirectory ) : void
usageFileName string
sourceWebPartType string
targetWebPartFileName string
targetWebPartXmlFilePath string
outPutDirectory string
return void

WebPart_Initialization() public static method

public static WebPart_Initialization ( string DiscoveryUsage_OutPutFolder ) : void
DiscoveryUsage_OutPutFolder string
return void

Property Details

filePath public_oe static_oe property

public static string filePath
return string

outputPath public_oe static_oe property

public static string outputPath
return string

timeStamp public_oe static_oe property

public static string timeStamp
return string