using System;
namespace Umbraco.Core.Models
{
///
/// The IContent states of a content version.
///
public enum PublishedState
{
// when a content version is loaded, its state is one of those two:
///
/// The version is published.
///
Published,
///
/// The version is not published.
///
/// Also: the version is being saved, in order to register changes
/// made to an unpublished version of the content.
Unpublished,
// legacy - remove
[Obsolete("kill!", true)]
Saved,
// when it is saved, its state can also be one of those:
///
/// The version is being saved, in order to register changes made to a published content.
///
/// The Saving state is transitional. Once the version
/// is saved, its state changes to Unpublished.
Saving,
///
/// The version is being saved, in order to publish the content.
///
/// The Publishing state is transitional. Once the version
/// is saved, its state changes to Published. The content is published,
/// and all other versions are unpublished.
Publishing,
///
/// The version is being saved, in order to unpublish the content.
///
/// The Unpublishing state is transitional. Once the version
/// is saved, its state changes to Unpublished. The content and all
/// other versions are unpublished.
Unpublishing
}
}