C# Class N2.Edit.Versioning.VersioningExtensions

Mostrar archivo Open project: n2cms/n2cms

Public Methods

Method 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

Method Description
CopyAutoImplementedProperties ( ContentItem source, ContentItem destination ) : void
TryClone ( object value ) : object

Method Details

CloneForVersioningRecursive() public static method

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

FindDescendantByVersionKey() public static method

public static FindDescendantByVersionKey ( this parent, string key ) : ContentItem
parent this
key string
return ContentItem

FindPartVersion() public static method

public static FindPartVersion ( this parent, ContentItem part ) : ContentItem
parent this
part ContentItem
return ContentItem

GetVersionInfo() public static method

public static GetVersionInfo ( this version ) : N2.Edit.Versioning.VersionInfo
version this
return N2.Edit.Versioning.VersionInfo

GetVersionInfo() public static method

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

GetVersionItem() public static method

public static GetVersionItem ( this repository, ContentItem item, int versionIndex ) : ContentItem
repository this
item ContentItem
versionIndex int
return ContentItem

GetVersionKey() public static method

public static GetVersionKey ( this item ) : string
item this
return string

IsVersionable() public static method

public static IsVersionable ( this item ) : bool
item this
return bool

MakeMasterVersion() public static method

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

MarkForFuturePublishing() public static method

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

Publish() public static method

public static Publish ( this versionManager, IPersister persister, ContentItem previewedItem ) : ContentItem
versionManager this
persister IPersister
previewedItem ContentItem
return ContentItem

SchedulePublishing() public static method

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

SetVersionKey() public static method

public static SetVersionKey ( this item, string key ) : void
item this
key string
return void