using System; using umbraco.interfaces; using umbraco.BasePages; namespace umbraco.BusinessLogic.Actions { /// /// This action is invoked upon saving of a document, media, member /// public class ActionSave : IAction { //create singleton private static readonly ActionSave m_instance = new ActionSave(); /// /// A public constructor exists ONLY for backwards compatibility in regards to 3rd party add-ons. /// All Umbraco assemblies should use the singleton instantiation (this.Instance) /// When this applicatio is refactored, this constuctor should be made private. /// [Obsolete("Use the singleton instantiation instead of a constructor")] public ActionSave() { } public static ActionSave Instance { get { return m_instance; } } #region IAction Members public char Letter { get { return '0'; } } public string JsFunctionName { get { return ""; } } public string JsSource { get { return null; } } public string Alias { get { return "save"; } } public string Icon { get { return ".sprSave"; } } public bool ShowInNotifier { get { return false; } } public bool CanBePermissionAssigned { get { return false; } } #endregion } }