88 lines
1.5 KiB
C#
88 lines
1.5 KiB
C#
using System;
|
|
using umbraco.interfaces;
|
|
using umbraco.BasePages;
|
|
|
|
namespace umbraco.BusinessLogic.Actions
|
|
{
|
|
/// <summary>
|
|
/// This action is invoked upon viewing audittrailing on a document
|
|
/// </summary>
|
|
public class ActionAudit : IAction
|
|
{
|
|
//create singleton
|
|
private static readonly ActionAudit m_instance = new ActionAudit();
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[Obsolete("Use the singleton instantiation instead of a constructor")]
|
|
public ActionAudit() { }
|
|
|
|
public static ActionAudit Instance
|
|
{
|
|
get { return m_instance; }
|
|
}
|
|
|
|
#region IAction Members
|
|
|
|
public char Letter
|
|
{
|
|
get
|
|
{
|
|
return 'Z';
|
|
}
|
|
}
|
|
|
|
public string JsFunctionName
|
|
{
|
|
get
|
|
{
|
|
return string.Format("{0}.actionAudit()", ClientTools.Scripts.GetAppActions);
|
|
}
|
|
}
|
|
|
|
public string JsSource
|
|
{
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public string Alias
|
|
{
|
|
get
|
|
{
|
|
return "auditTrail";
|
|
}
|
|
}
|
|
|
|
public string Icon
|
|
{
|
|
get
|
|
{
|
|
return ".sprAudit";
|
|
}
|
|
}
|
|
|
|
public bool ShowInNotifier
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
public bool CanBePermissionAssigned
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|