C# 클래스 N2.Edit.Versioning.ContentVersionRepository

파일 보기 프로젝트 열기: n2cms/n2cms 1 사용 예제들

공개 메소드들

메소드 설명
ContentVersionRepository ( IRepository repository, N2.Persistence.Serialization.Exporter exporter, N2.Persistence.Serialization.Importer importer, IUrlParser parser, IProxyFactory proxyFactory ) : System
Delete ( ContentItem item ) : void
DeleteVersionsOf ( ContentItem item ) : void
Deserialize ( string xml ) : ContentItem
DeserializeVersion ( N2.Edit.Versioning.ContentVersion version ) : ContentItem
GetGreatestVersionIndex ( ContentItem item ) : int
GetLatestVersion ( ContentItem item ) : ContentItem
GetVersion ( ContentItem item, int versionIndex = -1 ) : N2.Edit.Versioning.ContentVersion
GetVersions ( ContentItem item ) : IEnumerable
GetVersionsScheduledForPublish ( System.DateTime publishVersionsScheduledBefore ) : IEnumerable
Save ( ContentItem item, bool asPreviousVersion = true ) : N2.Edit.Versioning.ContentVersion
Serialize ( ContentItem item ) : string
SerializeVersion ( N2.Edit.Versioning.ContentVersion version, ContentItem item ) : void

비공개 메소드들

메소드 설명
ApplyCommonValuesRecursive ( ContentItem parent ) : void
GetMaster ( ContentItem item ) : ContentItem

메소드 상세

ContentVersionRepository() 공개 메소드

public ContentVersionRepository ( IRepository repository, N2.Persistence.Serialization.Exporter exporter, N2.Persistence.Serialization.Importer importer, IUrlParser parser, IProxyFactory proxyFactory ) : System
repository IRepository
exporter N2.Persistence.Serialization.Exporter
importer N2.Persistence.Serialization.Importer
parser IUrlParser
proxyFactory IProxyFactory
리턴 System

Delete() 공개 메소드

public Delete ( ContentItem item ) : void
item ContentItem
리턴 void

DeleteVersionsOf() 공개 메소드

public DeleteVersionsOf ( ContentItem item ) : void
item ContentItem
리턴 void

Deserialize() 공개 메소드

public Deserialize ( string xml ) : ContentItem
xml string
리턴 ContentItem

DeserializeVersion() 공개 메소드

public DeserializeVersion ( N2.Edit.Versioning.ContentVersion version ) : ContentItem
version N2.Edit.Versioning.ContentVersion
리턴 ContentItem

GetGreatestVersionIndex() 공개 메소드

public GetGreatestVersionIndex ( ContentItem item ) : int
item ContentItem
리턴 int

GetLatestVersion() 공개 메소드

public GetLatestVersion ( ContentItem item ) : ContentItem
item ContentItem
리턴 ContentItem

GetVersion() 공개 메소드

public GetVersion ( ContentItem item, int versionIndex = -1 ) : N2.Edit.Versioning.ContentVersion
item ContentItem
versionIndex int
리턴 N2.Edit.Versioning.ContentVersion

GetVersions() 공개 메소드

public GetVersions ( ContentItem item ) : IEnumerable
item ContentItem
리턴 IEnumerable

GetVersionsScheduledForPublish() 공개 메소드

public GetVersionsScheduledForPublish ( System.DateTime publishVersionsScheduledBefore ) : IEnumerable
publishVersionsScheduledBefore System.DateTime
리턴 IEnumerable

Save() 공개 메소드

public Save ( ContentItem item, bool asPreviousVersion = true ) : N2.Edit.Versioning.ContentVersion
item ContentItem
asPreviousVersion bool
리턴 N2.Edit.Versioning.ContentVersion

Serialize() 공개 메소드

public Serialize ( ContentItem item ) : string
item ContentItem
리턴 string

SerializeVersion() 공개 메소드

public SerializeVersion ( N2.Edit.Versioning.ContentVersion version, ContentItem item ) : void
version N2.Edit.Versioning.ContentVersion
item ContentItem
리턴 void