View Source
Interface IDocumentVersionRepository
Assembly: Umbraco.Core.dll
Syntax
public interface IDocumentVersionRepository : IRepository
Methods
View Source
DeleteVersions(IEnumerable<int>)
Deletes multiple content versions by ID.
Declaration
void DeleteVersions(IEnumerable<int> versionIds)
Parameters
| Type |
Name |
Description |
| IEnumerable<int> |
versionIds |
|
View Source
Get(int)
Gets the content version metadata for a specific version.
Declaration
ContentVersionMeta? Get(int versionId)
Parameters
| Type |
Name |
Description |
| int |
versionId |
|
Returns
View Source
GetCleanupPolicies()
Gets cleanup policy override settings per content type.
Declaration
IReadOnlyCollection<ContentVersionCleanupPolicySettings> GetCleanupPolicies()
Returns
View Source
GetDocumentVersionsEligibleForCleanup()
Gets a list of all historic content versions.
Declaration
IReadOnlyCollection<ContentVersionMeta> GetDocumentVersionsEligibleForCleanup()
Returns
View Source
GetPagedItemsByContentId(int, long, int, out long, int?)
Gets paginated content versions for given content id paginated.
Declaration
IEnumerable<ContentVersionMeta> GetPagedItemsByContentId(int contentId, long pageIndex, int pageSize, out long totalRecords, int? languageId = null)
Parameters
| Type |
Name |
Description |
| int |
contentId |
|
| long |
pageIndex |
|
| int |
pageSize |
|
| long |
totalRecords |
|
| int? |
languageId |
|
Returns
View Source
SetPreventCleanup(int, bool)
Updates the prevent cleanup flag on a content version.
Declaration
void SetPreventCleanup(int versionId, bool preventCleanup)
Parameters
| Type |
Name |
Description |
| int |
versionId |
|
| bool |
preventCleanup |
|