C# Класс JDP.Remediation.Console.Helper

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
alreadyAuthorized bool
contextCount int

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

Метод Описание
AddWebPartToPage ( Web web, string webPartFile, Microsoft page, string zoneId ) : void
CreateAuthenticatedUserContext ( string domain, string username, SecureString password, string siteUrl ) : ClientContext
CreateAuthenticatedUserContextOld ( string domain, string username, SecureString password, string siteUrl ) : ClientContext
CreateSecureString ( string data ) : SecureString

Creates a Secure String

DeleteFileByServerRelativeUrl ( Web web, string serverRelativeFilePath ) : bool

Deletes the specified file from the specified web.

DeleteListByUrl ( Web web, string webRelativeUrl ) : void
DeleteMasterPageCatalogFile ( Web web, string mpFileName ) : void
DeleteWebPartFile ( Web web, string wpFileName ) : void
EnsureSiteColumn ( Web root, System.Guid fieldID, string fieldAsXml ) : Field
GetFileFromWeb ( Web web, string filePath ) : File
GetMasterPageInfo ( Web web ) : MasterPageInfo
ParseInputLine ( string inputLine ) : string[]
PublishMasterPage ( Web web, string mpFilePath, string title, string description ) : string
ReadInputFile ( string inputFileSpec, bool hasHeader ) : string[]
RemoveWebPartFromPage ( Web web, string wpTitle, File wpPage ) : void
SetMasterPages ( Web web, MasterPageInfo mpi, bool isRoot ) : void
SetMasterPages ( Web web, string mpFilePath, bool isRoot, bool inheritMaster ) : void
UploadDisplayTemplateFileJS ( Web web, string dtFileName, string localFilePath, string displayTemplateFolderName, string title, string description ) : void
UploadMasterPage ( Web web, string mpFileName, string localFilePath, string title, string description ) : string
UploadWebPartFile ( Web web, string wpFileName, string localFilePath, string title, string description ) : void
WebPartIsPresentOnPage ( Web web, string wpTitle, File wpPage ) : bool

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

Метод Описание
GetContentType ( Web web, List list, string contentType ) : string

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

AddWebPartToPage() публичный статический Метод

public static AddWebPartToPage ( Web web, string webPartFile, Microsoft page, string zoneId ) : void
web Web
webPartFile string
page Microsoft
zoneId string
Результат void

CreateAuthenticatedUserContext() публичный статический Метод

public static CreateAuthenticatedUserContext ( string domain, string username, SecureString password, string siteUrl ) : ClientContext
domain string
username string
password System.Security.SecureString
siteUrl string
Результат ClientContext

CreateAuthenticatedUserContextOld() публичный статический Метод

public static CreateAuthenticatedUserContextOld ( string domain, string username, SecureString password, string siteUrl ) : ClientContext
domain string
username string
password System.Security.SecureString
siteUrl string
Результат ClientContext

CreateSecureString() публичный статический Метод

Creates a Secure String
public static CreateSecureString ( string data ) : SecureString
data string string to be converted
Результат System.Security.SecureString

DeleteFileByServerRelativeUrl() публичный статический Метод

Deletes the specified file from the specified web.
public static DeleteFileByServerRelativeUrl ( Web web, string serverRelativeFilePath ) : bool
web Web this MUST be the web that contains the file to delete
serverRelativeFilePath string the SERVER-relative path to the file ("/sites/site/web/lib/folder/file.ext")
Результат bool

DeleteListByUrl() публичный статический Метод

public static DeleteListByUrl ( Web web, string webRelativeUrl ) : void
web Web
webRelativeUrl string
Результат void

DeleteMasterPageCatalogFile() публичный статический Метод

public static DeleteMasterPageCatalogFile ( Web web, string mpFileName ) : void
web Web
mpFileName string
Результат void

DeleteWebPartFile() публичный статический Метод

public static DeleteWebPartFile ( Web web, string wpFileName ) : void
web Web
wpFileName string
Результат void

EnsureSiteColumn() публичный статический Метод

public static EnsureSiteColumn ( Web root, System.Guid fieldID, string fieldAsXml ) : Field
root Web
fieldID System.Guid
fieldAsXml string
Результат Field

GetFileFromWeb() публичный статический Метод

public static GetFileFromWeb ( Web web, string filePath ) : File
web Web
filePath string
Результат File

GetMasterPageInfo() публичный статический Метод

public static GetMasterPageInfo ( Web web ) : MasterPageInfo
web Web
Результат MasterPageInfo

ParseInputLine() публичный статический Метод

public static ParseInputLine ( string inputLine ) : string[]
inputLine string
Результат string[]

PublishMasterPage() публичный статический Метод

public static PublishMasterPage ( Web web, string mpFilePath, string title, string description ) : string
web Web
mpFilePath string
title string
description string
Результат string

ReadInputFile() публичный статический Метод

public static ReadInputFile ( string inputFileSpec, bool hasHeader ) : string[]
inputFileSpec string
hasHeader bool
Результат string[]

RemoveWebPartFromPage() публичный статический Метод

public static RemoveWebPartFromPage ( Web web, string wpTitle, File wpPage ) : void
web Web
wpTitle string
wpPage File
Результат void

SetMasterPages() публичный статический Метод

public static SetMasterPages ( Web web, MasterPageInfo mpi, bool isRoot ) : void
web Web
mpi MasterPageInfo
isRoot bool
Результат void

SetMasterPages() публичный статический Метод

public static SetMasterPages ( Web web, string mpFilePath, bool isRoot, bool inheritMaster ) : void
web Web
mpFilePath string
isRoot bool
inheritMaster bool
Результат void

UploadDisplayTemplateFileJS() публичный статический Метод

public static UploadDisplayTemplateFileJS ( Web web, string dtFileName, string localFilePath, string displayTemplateFolderName, string title, string description ) : void
web Web
dtFileName string
localFilePath string
displayTemplateFolderName string
title string
description string
Результат void

UploadMasterPage() публичный статический Метод

public static UploadMasterPage ( Web web, string mpFileName, string localFilePath, string title, string description ) : string
web Web
mpFileName string
localFilePath string
title string
description string
Результат string

UploadWebPartFile() публичный статический Метод

public static UploadWebPartFile ( Web web, string wpFileName, string localFilePath, string title, string description ) : void
web Web
wpFileName string
localFilePath string
title string
description string
Результат void

WebPartIsPresentOnPage() публичный статический Метод

public static WebPartIsPresentOnPage ( Web web, string wpTitle, File wpPage ) : bool
web Web
wpTitle string
wpPage File
Результат bool

Описание свойств

alreadyAuthorized публичное статическое свойство

public static bool alreadyAuthorized
Результат bool

contextCount публичное статическое свойство

public static int contextCount
Результат int