C# Class N2.Edit.Versioning.VersioningExtensions

Afficher le fichier Open project: n2cms/n2cms

Méthodes publiques

Méthode Description
CloneForVersioningRecursive ( this item, N2.Edit.Workflow.StateChanger stateChanger = null, bool asPreviousVersion = true ) : ContentItem
FindDescendantByVersionKey ( this parent, string key ) : ContentItem
FindPartVersion ( this parent, ContentItem part ) : ContentItem
GetVersionInfo ( this version ) : N2.Edit.Versioning.VersionInfo
GetVersionInfo ( this version, ContentVersionRepository repository ) : N2.Edit.Versioning.VersionInfo
GetVersionItem ( this repository, ContentItem item, int versionIndex ) : ContentItem
GetVersionKey ( this item ) : string
IsVersionable ( this item ) : bool
MakeMasterVersion ( this versionManager, ContentItem versionToPublish ) : ContentItem

Publishes the given version.

MarkForFuturePublishing ( Workflow changer, ContentItem item, System.DateTime futureDate ) : void
Publish ( this versionManager, IPersister persister, ContentItem previewedItem ) : ContentItem
SchedulePublishing ( this previewedItem, System.DateTime publishDate, IEngine engine ) : void
SetVersionKey ( this item, string key ) : void

Private Methods

Méthode Description
CopyAutoImplementedProperties ( ContentItem source, ContentItem destination ) : void
TryClone ( object value ) : object

Method Details

CloneForVersioningRecursive() public static méthode

public static CloneForVersioningRecursive ( this item, N2.Edit.Workflow.StateChanger stateChanger = null, bool asPreviousVersion = true ) : ContentItem
item this
stateChanger N2.Edit.Workflow.StateChanger
asPreviousVersion bool
Résultat ContentItem

FindDescendantByVersionKey() public static méthode

public static FindDescendantByVersionKey ( this parent, string key ) : ContentItem
parent this
key string
Résultat ContentItem

FindPartVersion() public static méthode

public static FindPartVersion ( this parent, ContentItem part ) : ContentItem
parent this
part ContentItem
Résultat ContentItem

GetVersionInfo() public static méthode

public static GetVersionInfo ( this version ) : N2.Edit.Versioning.VersionInfo
version this
Résultat N2.Edit.Versioning.VersionInfo

GetVersionInfo() public static méthode

public static GetVersionInfo ( this version, ContentVersionRepository repository ) : N2.Edit.Versioning.VersionInfo
version this
repository ContentVersionRepository
Résultat N2.Edit.Versioning.VersionInfo

GetVersionItem() public static méthode

public static GetVersionItem ( this repository, ContentItem item, int versionIndex ) : ContentItem
repository this
item ContentItem
versionIndex int
Résultat ContentItem

GetVersionKey() public static méthode

public static GetVersionKey ( this item ) : string
item this
Résultat string

IsVersionable() public static méthode

public static IsVersionable ( this item ) : bool
item this
Résultat bool

MakeMasterVersion() public static méthode

Publishes the given version.
public static MakeMasterVersion ( this versionManager, ContentItem versionToPublish ) : ContentItem
versionManager this
versionToPublish ContentItem
Résultat ContentItem

MarkForFuturePublishing() public static méthode

public static MarkForFuturePublishing ( Workflow changer, ContentItem item, System.DateTime futureDate ) : void
changer Workflow
item ContentItem
futureDate System.DateTime
Résultat void

Publish() public static méthode

public static Publish ( this versionManager, IPersister persister, ContentItem previewedItem ) : ContentItem
versionManager this
persister IPersister
previewedItem ContentItem
Résultat ContentItem

SchedulePublishing() public static méthode

public static SchedulePublishing ( this previewedItem, System.DateTime publishDate, IEngine engine ) : void
previewedItem this
publishDate System.DateTime
engine IEngine
Résultat void

SetVersionKey() public static méthode

public static SetVersionKey ( this item, string key ) : void
item this
key string
Résultat void