using System.Collections.Generic; using Umbraco.Core.Models; namespace Umbraco.Core.Services { public interface IApplicationTreeService { void Intitialize(IEnumerable existingTrees); /// /// 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, byte 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); } }