2021-12-15 16:22:27 +01:00
|
|
|
|
// Copyright (c) Umbraco.
|
|
|
|
|
|
// See LICENSE for more details.
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Cms.Core.Actions
|
2018-10-29 17:27:33 +11:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This action is invoked when a document is protected or unprotected
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class ActionProtect : IAction
|
|
|
|
|
|
{
|
2021-12-15 16:22:27 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The unique action letter
|
|
|
|
|
|
/// </summary>
|
2018-11-24 19:39:15 +01:00
|
|
|
|
public const char ActionLetter = 'P';
|
|
|
|
|
|
|
2021-12-15 16:22:27 +01:00
|
|
|
|
/// <inheritdoc/>
|
2018-11-24 19:39:15 +01:00
|
|
|
|
public char Letter => ActionLetter;
|
2021-12-15 16:22:27 +01:00
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
2018-10-29 17:27:33 +11:00
|
|
|
|
public string Alias => "protect";
|
2021-12-15 16:22:27 +01:00
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
2018-10-29 17:27:33 +11:00
|
|
|
|
public string Category => Constants.Conventions.PermissionCategories.AdministrationCategory;
|
2021-12-15 16:22:27 +01:00
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
2018-10-29 17:27:33 +11:00
|
|
|
|
public string Icon => "lock";
|
2021-12-15 16:22:27 +01:00
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
2018-10-29 17:27:33 +11:00
|
|
|
|
public bool ShowInNotifier => true;
|
2021-12-15 16:22:27 +01:00
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
2018-10-29 17:27:33 +11:00
|
|
|
|
public bool CanBePermissionAssigned => true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|