public ContentDefinitionManager( IContentStorageManager contentStorageManager, ISettingsFormatter settingsFormatter) { _contentStorageManager = contentStorageManager; _settingsFormatter = settingsFormatter; }
public ContentDefinitionManager( IContentStorageProvider contentStorageProvider, ISettingsFormatter settingsFormatter) { _contentStorageProvider = contentStorageProvider; _settingsFormatter = settingsFormatter; }
public ContentDefinitionManager( IContentStorageManager contentStorageManager, ISettingsFormatter settingsFormatter, ILoggerFactory loggerFactory) { _contentStorageManager = contentStorageManager; _settingsFormatter = settingsFormatter; _logger = loggerFactory.CreateLogger <ContentDefinitionManager>(); }
public ContentDefinitionManager( IContentStorageManager contentStorageManager, ISettingsFormatter settingsFormatter, ILoggerFactory loggerFactory) { _contentStorageManager = contentStorageManager; _settingsFormatter = settingsFormatter; _logger = loggerFactory.CreateLogger<ContentDefinitionManager>(); }
public ContentDefinitionManager(ICacheManager cacheManager, IRepository<ContentTypePartDefinitionRecord> typePartDefinitionRecord, IEnumerable<IContentTypeDefinition> typeDefintions, ISignals signals, ISettingsFormatter settingsFormatter) { _cacheManager = cacheManager; _signals = signals; _settingsFormatter = settingsFormatter; _typePartDefinitionRecord = typePartDefinitionRecord; _typeDefinitions = typeDefintions; }
public ContentDefinitionManager(ICacheManager cacheManager, IRepository <ContentTypePartDefinitionRecord> typePartDefinitionRecord, IEnumerable <IContentTypeDefinition> typeDefintions, ISignals signals, ISettingsFormatter settingsFormatter) { _cacheManager = cacheManager; _signals = signals; _settingsFormatter = settingsFormatter; _typePartDefinitionRecord = typePartDefinitionRecord; _typeDefinitions = typeDefintions; }
public GlobalContentDefinitionEditorEvents( IAuditTrailManager auditTrailManager, IWorkContextAccessor wca, IContentDefinitionService contentDefinitionService, ISettingsFormatter settingsFormatter) { _auditTrailManager = auditTrailManager; _wca = wca; _contentDefinitionService = contentDefinitionService; _settingsFormatter = settingsFormatter; }
public ContentDefinitionManager( ICacheManager cacheManager, ISignals signals, IRepository<ContentTypeDefinitionRecord> typeDefinitionRepository, IRepository<ContentPartDefinitionRecord> partDefinitionRepository, IRepository<ContentFieldDefinitionRecord> fieldDefinitionRepository, ISettingsFormatter settingsFormatter) { _cacheManager = cacheManager; _signals = signals; _typeDefinitionRepository = typeDefinitionRepository; _partDefinitionRepository = partDefinitionRepository; _fieldDefinitionRepository = fieldDefinitionRepository; _settingsFormatter = settingsFormatter; }
public ContentDefinitionManager( ICacheManager cacheManager, ISignals signals, IRepository <ContentTypeDefinitionRecord> typeDefinitionRepository, IRepository <ContentPartDefinitionRecord> partDefinitionRepository, IRepository <ContentFieldDefinitionRecord> fieldDefinitionRepository, ISettingsFormatter settingsFormatter) { _cacheManager = cacheManager; _signals = signals; _typeDefinitionRepository = typeDefinitionRepository; _partDefinitionRepository = partDefinitionRepository; _fieldDefinitionRepository = fieldDefinitionRepository; _settingsFormatter = settingsFormatter; }
public ContentMetadataService( IOrchardServices services, ISettingsFormatter settingsFormatter, IContentDefinitionService contentDefinitionService, ISchemaUpdateService schemaUpdateService, IEntityEvents entityEvents, IRepository<ContentFieldDefinitionRecord> fieldDefinitionRepository, IContentDefinitionEditorEvents contentDefinitionEditorEvents) { _contentDefinitionService = contentDefinitionService; _schemaUpdateService = schemaUpdateService; _entityEvents = entityEvents; _settingsFormatter = settingsFormatter; _fieldDefinitionRepository = fieldDefinitionRepository; _contentDefinitionEditorEvents = contentDefinitionEditorEvents; Services = services; }
public ContentMetadataService( IOrchardServices services, ISettingsFormatter settingsFormatter, IContentDefinitionService contentDefinitionService, ISchemaUpdateService schemaUpdateService, IEntityEvents entityEvents, IRepository <ContentFieldDefinitionRecord> fieldDefinitionRepository, IContentDefinitionEditorEvents contentDefinitionEditorEvents) { _contentDefinitionService = contentDefinitionService; _schemaUpdateService = schemaUpdateService; _entityEvents = entityEvents; _settingsFormatter = settingsFormatter; _fieldDefinitionRepository = fieldDefinitionRepository; _contentDefinitionEditorEvents = contentDefinitionEditorEvents; Services = services; }
public EntityMetadataPartHandler( IRepository<EntityMetadataRecord> entityMetadataRepository, IRepository<FieldMetadataRecord> fieldMetadataRepository, IContentManager contentManager, IContentDefinitionManager contentDefinitionManager, ISettingsFormatter settingsFormatter, IEntityEvents entityEvents, ISchemaUpdateService schemaUpdateService, IFieldEvents fieldEvents, IContentDefinitionEditorEvents contentDefinitionEditorEvents) { _fieldMetadataRepository = fieldMetadataRepository; _contentManager = contentManager; _contentDefinitionManager = contentDefinitionManager; _settingsFormatter = settingsFormatter; _entityEvents = entityEvents; _schemaUpdateService = schemaUpdateService; _fieldEvents = fieldEvents; _contentDefinitionEditorEvents = contentDefinitionEditorEvents; Filters.Add(StorageFilter.For(entityMetadataRepository)); OnVersioning<EntityMetadataPart>(OnVersioning); OnPublishing<EntityMetadataPart>(OnPublishing); }
public EntityMetadataPartHandler( IRepository <EntityMetadataRecord> entityMetadataRepository, IRepository <FieldMetadataRecord> fieldMetadataRepository, IContentManager contentManager, IContentDefinitionManager contentDefinitionManager, ISettingsFormatter settingsFormatter, IEntityEvents entityEvents, ISchemaUpdateService schemaUpdateService, IFieldEvents fieldEvents, IContentDefinitionEditorEvents contentDefinitionEditorEvents) { _fieldMetadataRepository = fieldMetadataRepository; _contentManager = contentManager; _contentDefinitionManager = contentDefinitionManager; _settingsFormatter = settingsFormatter; _entityEvents = entityEvents; _schemaUpdateService = schemaUpdateService; _fieldEvents = fieldEvents; _contentDefinitionEditorEvents = contentDefinitionEditorEvents; Filters.Add(StorageFilter.For(entityMetadataRepository)); OnVersioning <EntityMetadataPart>(OnVersioning); OnPublishing <EntityMetadataPart>(OnPublishing); }
/// <summary> /// Initializes a new instance of the <see cref="ContentDefinitionWriter"/> class. /// </summary> /// <param name="settingsFormatter">The settings formatter to be used to convert the settings between a dictionary and an XML format.</param> public ContentDefinitionWriter(ISettingsFormatter settingsFormatter) { Argument.ThrowIfNull(settingsFormatter, nameof(settingsFormatter)); _settingsFormatter = settingsFormatter; }
public ContentTypeFieldSettingsUpdatedEventShape(ISettingsFormatter settingsFormatter) { _settingsFormatter = settingsFormatter; }
/// <summary> /// Initializes a new instance of the <see cref="ContentDefinitionReader"/> class. /// </summary> /// <param name="settingsFormatter">The settings formatter to be used to convert the settings between a dictionary and an XML format.</param> public ContentDefinitionReader(ISettingsFormatter settingsFormatter) { Argument.ThrowIfNull(settingsFormatter, "settingsFormatter"); _settingsFormatter = settingsFormatter; }
public static string ToXml(this SettingsDictionary settings, ISettingsFormatter settingsFormatter) { return settingsFormatter.Map(settings).ToString(SaveOptions.DisableFormatting); }
public static bool IsEqualTo(this SettingsDictionary a, SettingsDictionary b, ISettingsFormatter settingsFormatter) { var xml1 = ToXml(a, settingsFormatter); var xml2 = ToXml(b, settingsFormatter); return String.Equals(xml1, xml2, StringComparison.OrdinalIgnoreCase); }
public static bool IsEqualTo(this SettingsDictionary a, SettingsDictionary b, ISettingsFormatter settingsFormatter) { var xml1 = ToXml(a, settingsFormatter); var xml2 = ToXml(b, settingsFormatter); return(String.Equals(xml1, xml2, StringComparison.OrdinalIgnoreCase)); }
public ContentPartSettingsUpdatedEventShape(ISettingsFormatter settingsFormatter) { _settingsFormatter = settingsFormatter; }
public static string ToXml(this SettingsDictionary settings, ISettingsFormatter settingsFormatter) { return(settingsFormatter.Map(settings).ToString(SaveOptions.DisableFormatting)); }