/// <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."
            };
        }
Exemple #2
0
        /// <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."
            };
        }
Exemple #3
0
        /// <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."
            };
        }
Exemple #4
0
        /// <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."
            };
        }
Exemple #5
0
        /// <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."
            };
        }
Exemple #6
0
        /// <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="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."
            };
        }
Exemple #8
0
        /// <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."
            };
        }
Exemple #9
0
 public ThemeNode(IPowerShellVfs vfs, OrchardTheme theme)
     : base(vfs, theme.Name, theme)
 {
 }
Exemple #10
0
 public ThemeNode(IPowerShellVfs vfs, OrchardTheme theme)
     : base(vfs, theme.Name, theme)
 {
 }
Exemple #11
0
 public FeatureNode(IPowerShellVfs vfs, OrchardFeature feature)
     : base(vfs, feature.Name, feature)
 {
 }
Exemple #12
0
 /// <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)));
 }
Exemple #13
0
 /// <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));
 }
Exemple #14
0
 public ModuleNode(IPowerShellVfs vfs, OrchardModule module)
     : base(vfs, module.Name, GetSubNodes(vfs, module))
 {
     this.Item = module;
 }
Exemple #15
0
 /// <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";
 }
Exemple #16
0
 public TenantNode(IPowerShellVfs vfs, OrchardTenant tenant) 
     : base(vfs, tenant.Name) 
 {
     this.Item = tenant;
 }
Exemple #17
0
 /// <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";
 }
Exemple #18
0
 public TenantNode(IPowerShellVfs vfs, OrchardTenant tenant)
     : base(vfs, tenant.Name)
 {
     this.Item = tenant;
 }
Exemple #19
0
 public ModuleNode(IPowerShellVfs vfs, OrchardModule module)
     : base(vfs, module.Name, GetSubNodes(vfs, module))
 {
     this.Item = module;
 }
Exemple #20
0
 public CommandNode(IPowerShellVfs vfs, OrchardCommand command) 
     : base(vfs, command.CommandName, command)
 {
 }
Exemple #21
0
 public CommandNode(IPowerShellVfs vfs, OrchardCommand command)
     : base(vfs, command.CommandName, command)
 {
 }