Interface IApprovalDefinitionVersionRepository
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Repository for handling specific approval definition versions
Namespace: EPiServer.Approvals
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public interface IApprovalDefinitionVersionRepository
Methods
DeleteAsync(Int32)
Deletes an approval definition version. If this is the last version for an approval definition, the definition is also deleted.
Declaration
Task DeleteAsync(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The identifier of the approval definition version |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Exceptions
Type | Condition |
---|---|
ApprovalInReviewException | The operation cannot be executed due to a conflict with an approval in review |
GetAsync(Int32)
Get a specific approval definition version.
Declaration
Task<ApprovalDefinition> GetAsync(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The identifier of the approval definition version |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApprovalDefinition> | The approval definition version |
ListAsync(Int32)
List all approval definition versions for an approval definition.
Declaration
Task<IEnumerable<ApprovalDefinition>> ListAsync(int definitionID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | definitionID | The identifier of the approval definition |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ApprovalDefinition>> | A list of approval definition versions |