C# 클래스 OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectHandlerBase

파일 보기 프로젝트 열기: OfficeDev/PnP-Sites-Core 1 사용 예제들

공개 메소드들

메소드 설명
ExtractObjects ( Web web, OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate template, OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateCreationInformation creationInfo ) : OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate
ProvisionObjects ( Web web, OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate template, TokenParser parser, OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateApplyingInformation applyingInformation ) : TokenParser
WillExtract ( Web web, OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate template, OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateCreationInformation creationInfo ) : bool
WillProvision ( Web web, OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate template ) : bool

보호된 메소드들

메소드 설명
IsFieldXmlValid ( string fieldXml, TokenParser parser, ClientRuntimeContext context ) : bool

Check if all tokens where replaced. If the field is a taxonomy field then we will check for the values of the referenced termstore and termset.

Tokenize ( string url, string webUrl, Web web = null ) : string

Tokenize a template item url based attribute with {themecatalog} or {masterpagecatalog} or {site}+

TokenizeTaxonomyField ( Web web, XElement element ) : string

Tokenizes the taxonomy field.

비공개 메소드들

메소드 설명
TokenizeFieldFormula ( string fieldXml ) : string
WriteWarning ( string message, ProvisioningMessageType messageType ) : void

메소드 상세

ExtractObjects() 공개 추상적인 메소드

public abstract ExtractObjects ( Web web, OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate template, OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateCreationInformation creationInfo ) : OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate
web Web
template OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate
creationInfo OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateCreationInformation
리턴 OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate

IsFieldXmlValid() 보호된 정적인 메소드

Check if all tokens where replaced. If the field is a taxonomy field then we will check for the values of the referenced termstore and termset.
protected static IsFieldXmlValid ( string fieldXml, TokenParser parser, ClientRuntimeContext context ) : bool
fieldXml string The xml to parse
parser TokenParser
context ClientRuntimeContext
리턴 bool

ProvisionObjects() 공개 추상적인 메소드

public abstract ProvisionObjects ( Web web, OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate template, TokenParser parser, OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateApplyingInformation applyingInformation ) : TokenParser
web Web
template OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate
parser TokenParser
applyingInformation OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateApplyingInformation
리턴 TokenParser

Tokenize() 보호된 메소드

Tokenize a template item url based attribute with {themecatalog} or {masterpagecatalog} or {site}+
protected Tokenize ( string url, string webUrl, Web web = null ) : string
url string the url to tokenize as String
webUrl string web url of the actual web as String
web Web Web being used
리턴 string

TokenizeTaxonomyField() 보호된 메소드

Tokenizes the taxonomy field.
protected TokenizeTaxonomyField ( Web web, XElement element ) : string
web Web The web.
element XElement The element.
리턴 string

WillExtract() 공개 추상적인 메소드

public abstract WillExtract ( Web web, OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate template, OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateCreationInformation creationInfo ) : bool
web Web
template OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate
creationInfo OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ProvisioningTemplateCreationInformation
리턴 bool

WillProvision() 공개 추상적인 메소드

public abstract WillProvision ( Web web, OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate template ) : bool
web Web
template OfficeDevPnP.Core.Framework.Provisioning.Model.ProvisioningTemplate
리턴 bool