using System; using System.Collections.Generic; using System.Text; namespace umbraco.BusinessLogic { /// /// ApplicationBase provides an easy to use base class to install event handlers in umbraco. /// Class inhiriting from ApplcationBase are automaticly registered and instantiated by umbraco on application start. /// To use, inhirite the ApplicationBase Class and add an empty constructor. /// public abstract class ApplicationBase : umbraco.interfaces.IApplication { #region IApplication Members /// /// Gets the application alias. By Default it returns the full name of the application class. /// The Alias must be unique. /// /// The application alias. public virtual string Alias{ get { return GetType().FullName; } } /// /// Gets the application name. By default it returns the application Classname /// /// The name. public virtual string Name { get { return GetType().Name; } } /// /// Gets the application icon. For use with application installation which is currently not implemented. /// The icon is a path to an image file in the /umbraco/images/tray folder /// /// The path to the application icon. public virtual string Icon { get { return string.Empty; } } /// /// Gets the application sortorder. For use with application installation which is currently not implemented. /// Sets the sortorder for the Icon in the section tray. By default it returns the value 0 /// /// The sort order. public virtual int SortOrder { get { return 0; } } /// /// Gets the application visibility. For use with application installation which is currently not implemented. /// Determines if the application is installed as a visible section in umbraco or just a service running. /// /// true if visible; otherwise, false. public virtual bool Visible { get { return false; } } /// /// The alias of a application tree to be initialized when section is opened in the backend. /// Should only be set if a applcation tree needs to loaded right away. /// /// The init tree alias. public virtual string InitTreeAlias { get { return string.Empty; } } /// /// Collection of application trees. For use with application installation which is currently not implemented. /// Contains the collection of application trees to be installed along with the application itself. /// Return null by default. /// /// The application trees. public virtual List ApplicationTrees { get { return null; } } #endregion } }