2016-05-18 10:55:19 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core.Models
|
2013-01-10 14:07:07 -01:00
|
|
|
|
{
|
2016-05-18 10:55:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The <c>IContent</c> states of a content version.
|
|
|
|
|
|
/// </summary>
|
2013-01-10 14:07:07 -01:00
|
|
|
|
public enum PublishedState
|
|
|
|
|
|
{
|
2016-05-18 10:55:19 +02:00
|
|
|
|
// when a content version is loaded, its state is one of those two:
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The version is published.
|
|
|
|
|
|
/// </summary>
|
2013-01-10 14:07:07 -01:00
|
|
|
|
Published,
|
2016-05-18 10:55:19 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The version is not published.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>Also: the version is being saved, in order to register changes
|
|
|
|
|
|
/// made to an unpublished version of the content.</remarks>
|
2013-01-10 14:07:07 -01:00
|
|
|
|
Unpublished,
|
2016-05-18 10:55:19 +02:00
|
|
|
|
|
|
|
|
|
|
// legacy - remove
|
|
|
|
|
|
[Obsolete("kill!", true)]
|
|
|
|
|
|
Saved,
|
|
|
|
|
|
|
|
|
|
|
|
// when it is saved, its state can also be one of those:
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The version is being saved, in order to register changes made to a published content.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>The <value>Saving</value> state is transitional. Once the version
|
|
|
|
|
|
/// is saved, its state changes to <value>Unpublished</value>.</remarks>
|
|
|
|
|
|
Saving,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The version is being saved, in order to publish the content.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>The <value>Publishing</value> state is transitional. Once the version
|
|
|
|
|
|
/// is saved, its state changes to <value>Published</value>. The content is published,
|
|
|
|
|
|
/// and all other versions are unpublished.</remarks>
|
|
|
|
|
|
Publishing,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The version is being saved, in order to unpublish the content.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>The <value>Unpublishing</value> state is transitional. Once the version
|
|
|
|
|
|
/// is saved, its state changes to <value>Unpublished</value>. The content and all
|
|
|
|
|
|
/// other versions are unpublished.</remarks>
|
|
|
|
|
|
Unpublishing
|
|
|
|
|
|
|
2013-01-10 14:07:07 -01:00
|
|
|
|
}
|
|
|
|
|
|
}
|