C# 클래스 ToSic.SexyContent.ImportExport.XmlImport

파일 보기 프로젝트 열기: 2sic/2sxc 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ImportLog List

Private Properties

프로퍼티 타입 설명
GetImportAttributeSets List
GetImportEntities List
GetImportEntity ToSic.Eav.Import.ImportEntity
GetMappedLink string
ImportXmlTemplates void
PrepareFileIdCorrectionList void
PrepareFolderIdCorrectionListAndCreateMissingFolders void

공개 메소드들

메소드 설명
GetExportImportMessagesFromImportLog ( List importLog ) : IEnumerable

Maps EAV import messages to 2sxc import messages

ImportApp ( int zoneId, System.Xml.Linq.XDocument doc, int &appId ) : bool

Creates an app and then imports the xml

ImportXml ( int zoneId, int appId, System.Xml.Linq.XDocument doc, bool leaveExistingValuesUntouched = true ) : bool

Do the import

IsCompatible ( System.Xml.Linq.XDocument doc ) : bool
XmlImport ( string defaultLanguage, string userName, bool allowSystemChanges = false ) : System

Create a new xmlImport instance

비공개 메소드들

메소드 설명
GetImportAttributeSets ( IEnumerable xAttributeSets ) : List
GetImportEntities ( IEnumerable entities, int assignmentObjectTypeId ) : List

Returns a collection of EAV import entities

GetImportEntity ( System.Xml.Linq.XElement entityNode, int assignmentObjectTypeId ) : ToSic.Eav.Import.ImportEntity

Returns an EAV import entity

GetMappedLink ( string sourceValueString ) : string

Try to map a link like "file:275" from the import to the target system Will return null if nothing appropriate found, so the caller can choose to not do anything

ImportXmlTemplates ( System.Xml.Linq.XElement root ) : void
PrepareFileIdCorrectionList ( System.Xml.Linq.XElement sexyContentNode ) : void
PrepareFolderIdCorrectionListAndCreateMissingFolders ( System.Xml.Linq.XElement sexyContentNode ) : void

메소드 상세

GetExportImportMessagesFromImportLog() 공개 메소드

Maps EAV import messages to 2sxc import messages
public GetExportImportMessagesFromImportLog ( List importLog ) : IEnumerable
importLog List
리턴 IEnumerable

ImportApp() 공개 메소드

Creates an app and then imports the xml
public ImportApp ( int zoneId, System.Xml.Linq.XDocument doc, int &appId ) : bool
zoneId int
doc System.Xml.Linq.XDocument
appId int
리턴 bool

ImportXml() 공개 메소드

Do the import
public ImportXml ( int zoneId, int appId, System.Xml.Linq.XDocument doc, bool leaveExistingValuesUntouched = true ) : bool
zoneId int
appId int
doc System.Xml.Linq.XDocument
leaveExistingValuesUntouched bool
리턴 bool

IsCompatible() 공개 메소드

public IsCompatible ( System.Xml.Linq.XDocument doc ) : bool
doc System.Xml.Linq.XDocument
리턴 bool

XmlImport() 공개 메소드

Create a new xmlImport instance
public XmlImport ( string defaultLanguage, string userName, bool allowSystemChanges = false ) : System
defaultLanguage string The portals default language / culture - example: de-DE
userName string
allowSystemChanges bool Specify if the import should be able to change system-wide things like shared attributesets
리턴 System

프로퍼티 상세

ImportLog 공개적으로 프로퍼티

public List ImportLog
리턴 List