public ZipImport(IImportExportEnvironment environment, int zoneId, int?appId, bool allowRazor) { _appId = appId; _zoneId = zoneId; _allowRazor = allowRazor; _environment = environment; }
/// <summary> /// Create a new xmlImport instance /// </summary> /// <param name="defaultLanguage">The portals default language / culture - example: de-DE</param> /// <param name="allowSystemChanges">Specify if the import should be able to change system-wide things like shared attributesets</param> public XmlImportWithFiles(string defaultLanguage = null, bool allowSystemChanges = false) { _environment = Factory.Resolve <IImportExportEnvironment>(); // Prepare ImportLog = new List <Message>(); DefaultLanguage = (defaultLanguage ?? _environment.DefaultLanguage).ToLowerInvariant(); AllowSystemChanges = allowSystemChanges; }
public XmlImportFull(Lazy <Import> importerLazy, Lazy <CmsManager> cmsManagerLazy, Lazy <DbDataController> dbDataForNewApp, Lazy <DbDataController> dbDataForAppImport, IImportExportEnvironment importExportEnvironment, IRepositoryLoader repositoryLoader, ITargetTypes metaTargetTypes) : base(importerLazy, dbDataForNewApp, dbDataForAppImport, importExportEnvironment, metaTargetTypes, "Sxc.XmlImp") { _cmsManagerLazy = cmsManagerLazy; _repositoryLoader = repositoryLoader.Init(Log); }