using System.Collections.Generic; using Umbraco.Core.Models; namespace Umbraco.Core.Services { public interface IApplicationTreeService { /// /// Creates a new application tree. /// /// if set to true [initialize]. /// The sort order. /// The application alias. /// The alias. /// The title. /// The icon closed. /// The icon opened. /// The type. void MakeNew(bool initialize, int sortOrder, string applicationAlias, string alias, string title, string iconClosed, string iconOpened, string type); /// /// Saves this instance. /// void SaveTree(ApplicationTree tree); /// /// Deletes this instance. /// void DeleteTree(ApplicationTree tree); /// /// Gets an ApplicationTree by it's tree alias. /// /// The tree alias. /// An ApplicationTree instance ApplicationTree GetByAlias(string treeAlias); /// /// Gets all applicationTrees registered in umbraco from the umbracoAppTree table.. /// /// Returns a ApplicationTree Array IEnumerable GetAll(); /// /// Gets the application tree for the applcation with the specified alias /// /// The application alias. /// Returns a ApplicationTree Array IEnumerable GetApplicationTrees(string applicationAlias); /// /// Gets the application tree for the applcation with the specified alias /// /// The application alias. /// /// Returns a ApplicationTree Array IEnumerable GetApplicationTrees(string applicationAlias, bool onlyInitialized); } /// /// Purely used to allow a service context to create the default services /// internal class EmptyApplicationTreeService : IApplicationTreeService { /// /// Creates a new application tree. /// /// if set to true [initialize]. /// The sort order. /// The application alias. /// The alias. /// The title. /// The icon closed. /// The icon opened. /// The type. public void MakeNew(bool initialize, int sortOrder, string applicationAlias, string alias, string title, string iconClosed, string iconOpened, string type) { throw new System.NotImplementedException(); } /// /// Saves this instance. /// public void SaveTree(ApplicationTree tree) { throw new System.NotImplementedException(); } /// /// Deletes this instance. /// public void DeleteTree(ApplicationTree tree) { throw new System.NotImplementedException(); } /// /// Gets an ApplicationTree by it's tree alias. /// /// The tree alias. /// An ApplicationTree instance public ApplicationTree GetByAlias(string treeAlias) { throw new System.NotImplementedException(); } /// /// Gets all applicationTrees registered in umbraco from the umbracoAppTree table.. /// /// Returns a ApplicationTree Array public IEnumerable GetAll() { throw new System.NotImplementedException(); } /// /// Gets the application tree for the applcation with the specified alias /// /// The application alias. /// Returns a ApplicationTree Array public IEnumerable GetApplicationTrees(string applicationAlias) { throw new System.NotImplementedException(); } /// /// Gets the application tree for the applcation with the specified alias /// /// The application alias. /// /// Returns a ApplicationTree Array public IEnumerable GetApplicationTrees(string applicationAlias, bool onlyInitialized) { throw new System.NotImplementedException(); } } }