Files
Umbraco-CMS/src/Umbraco.Core/Models/ContentStatus.cs

47 lines
1.2 KiB
C#
Raw Normal View History

2018-06-29 19:52:40 +02:00
using System;
using System.Runtime.Serialization;
namespace Umbraco.Core.Models
{
/// <summary>
2018-11-08 16:33:19 +01:00
/// Describes the states of a document, with regard to (schedule) publishing.
2018-06-29 19:52:40 +02:00
/// </summary>
[Serializable]
[DataContract]
public enum ContentStatus
{
2018-11-08 16:33:19 +01:00
// typical flow:
// Unpublished (add release date)-> AwaitingRelease (release)-> Published (expire)-> Expired
/// <summary>
/// The document is not trashed, and not published.
/// </summary>
2018-06-29 19:52:40 +02:00
[EnumMember]
Unpublished,
2018-11-08 16:33:19 +01:00
/// <summary>
/// The document is published.
/// </summary>
2018-06-29 19:52:40 +02:00
[EnumMember]
Published,
2018-11-08 16:33:19 +01:00
/// <summary>
/// The document is not trashed, not published, after being unpublished by a scheduled action.
/// </summary>
2018-06-29 19:52:40 +02:00
[EnumMember]
Expired,
2018-11-08 16:33:19 +01:00
/// <summary>
/// The document is trashed.
/// </summary>
2018-06-29 19:52:40 +02:00
[EnumMember]
Trashed,
2018-11-08 16:33:19 +01:00
/// <summary>
/// The document is not trashed, not published, and pending publication by a scheduled action.
/// </summary>
2018-06-29 19:52:40 +02:00
[EnumMember]
AwaitingRelease
}
}