/// <summary> /// Initializes a new instance of the <see cref="FeatureCategoryNode"/> class. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> /// <param name="categoryName">The name of the feature category.</param> /// <param name="features">The objects which represent the Orchard features to encapsulate.</param> public FeatureCategoryNode(IPowerShellVfs vfs, string categoryName, OrchardFeature[] features) : base(vfs, categoryName) { this.features = features; this.Item = new CollectionItem(this) { Name = categoryName, Description = "Contains all features of the " + categoryName + " category." }; }
/// <summary> /// Initializes a new instance of the <see cref="ThemesNode"/> class. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> /// <param name="modulesAgent">The modules agent instance.</param> public ThemesNode(IPowerShellVfs vfs, IModulesAgent modulesAgent) : base(vfs, "Themes") { this.modulesAgent = modulesAgent; this.Item = new CollectionItem(this) { Name = "Themes", Description = "Contains all themes available in the current tenant." }; }
/// <summary> /// Initializes a new instance of the <see cref="TenantsNode"/> class. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> /// <param name="tenantAgent">The tenant agent instance.</param> public TenantsNode(IPowerShellVfs vfs, ITenantAgent tenantAgent) : base(vfs, "Tenants") { this.tenantAgent = tenantAgent; this.Item = new CollectionItem(this) { Name = "Tenants", Description = "Contains all tenants of the Orchard instance." }; }
/// <summary> /// Initializes a new instance of the <see cref="CommandsNode"/> class. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> /// <param name="commandAgent">The command agent instance.</param> public CommandsNode(IPowerShellVfs vfs, ICommandAgent commandAgent) : base(vfs, "Commands") { this.commandAgent = commandAgent; this.Item = new CollectionItem(this) { Name = "Commands", Description = "Contains all legacy Orchard commands available in the current tenant." }; }
public ThemeNode(IPowerShellVfs vfs, OrchardTheme theme) : base(vfs, theme.Name, theme) { }
public FeatureNode(IPowerShellVfs vfs, OrchardFeature feature) : base(vfs, feature.Name, feature) { }
/// <summary> /// Gets the subnodes of the node. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> /// <param name="module">The object which represents the Orchard module.</param> /// <returns>A sequence of VFS nodes.</returns> private static IEnumerable <VfsNode> GetSubNodes(IPowerShellVfs vfs, OrchardModule module) { return(module.Features.Select(f => new FeatureNode(vfs, f))); }
/// <summary> /// Gets the subnodes of the node. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> /// <param name="module">The object which represents the Orchard module.</param> /// <returns>A sequence of VFS nodes.</returns> private static IEnumerable<VfsNode> GetSubNodes(IPowerShellVfs vfs, OrchardModule module) { return module.Features.Select(f => new FeatureNode(vfs, f)); }
public ModuleNode(IPowerShellVfs vfs, OrchardModule module) : base(vfs, module.Name, GetSubNodes(vfs, module)) { this.Item = module; }
/// <summary> /// Initializes a new instance of the <see cref="ConfigurationNode"/> class. /// </summary> /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param> public ConfigurationNode(IPowerShellVfs vfs) : base(vfs, "Configuration") { this.Item = "Configuration"; }
public TenantNode(IPowerShellVfs vfs, OrchardTenant tenant) : base(vfs, tenant.Name) { this.Item = tenant; }
public CommandNode(IPowerShellVfs vfs, OrchardCommand command) : base(vfs, command.CommandName, command) { }