Class NullContentVersionRepository
An implementation of IContent
Inheritance
Implements
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class NullContentVersionRepository : Object, IContentVersionRepository
Constructors
NullContentVersionRepository(ContentProvider)
Initializes a new instance of the Null
Declaration
public NullContentVersionRepository(ContentProvider provider)
Parameters
Type | Name | Description |
---|---|---|
Content |
provider | The provider. |
Methods
Delete(ContentReference)
The implementation does not do anything since repository does not support versions
Declaration
public virtual void Delete(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
List(VersionFilter, Int32, Int32, out Int32)
Lists all versions that matches the filter
Declaration
public IEnumerable<ContentVersion> List(VersionFilter filter, int startIndex, int maxRows, out int totalCount)
Parameters
Type | Name | Description |
---|---|---|
Version |
filter | The filter used |
System. |
startIndex | The start index, used for paging |
System. |
maxRows | The maximum number of rows returned |
System. |
totalCount | The total amount of matched versions |
Returns
Type | Description |
---|---|
System. |
A list of versions, if no versions where matched an empty list will be returned |
Load(ContentReference)
This implementation has no versioning support so it uses Load(Content
Declaration
public ContentVersion Load(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
Returns
Type | Description |
---|---|
Content |
LoadCommonDraft(ContentReference, String)
Loads the common draft.
Declaration
public virtual ContentVersion LoadCommonDraft(ContentReference contentLink, string language)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link to load common draft for. |
System. |
language | The language. |
Returns
Type | Description |
---|---|
Content |
CommonDraft if it exist, otherwise Published, If no published exist the latest saved version is returned |
LoadPublished(ContentReference)
This implementation has no versioning support so it uses Load(Content
Declaration
public ContentVersion LoadPublished(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
Returns
Type | Description |
---|---|
Content |
LoadPublished(ContentReference, String)
This implementation has no versioning support so it uses Load(Content
Declaration
public ContentVersion LoadPublished(ContentReference contentLink, string languageBranch)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
System. |
languageBranch | The language branch. |
Returns
Type | Description |
---|---|
Content |
SetCommonDraft(ContentReference)
Sets the common draft.
Declaration
public virtual void SetCommonDraft(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |