using System; using umbraco.interfaces; using umbraco.BasePages; namespace umbraco.BusinessLogic.Actions { /// /// This action is invoked when children to a document, media, member is being sorted /// public class ActionSort : IAction { //create singleton private static readonly ActionSort m_instance = new ActionSort(); /// /// 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 ActionSort() { } public static ActionSort Instance { get { return m_instance; } } #region IAction Members public char Letter { get { return 'S'; } } public string JsFunctionName { get { return string.Format("{0}.actionSort()", ClientTools.Scripts.GetAppActions); } } public string JsSource { get { return null; } } public string Alias { get { return "sort"; } } public string Icon { get { return ".sprSort"; } } public bool ShowInNotifier { get { return true; } } public bool CanBePermissionAssigned { get { return true; } } #endregion } }