November Happy Hour will be moved to Thursday December 5th.

Class ApprovalDefinitionDB

Inheritance
System.Object
ApprovalDefinitionDB
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration(IncludeServiceAccessor = true)]
public class ApprovalDefinitionDB : Object

Constructors

ApprovalDefinitionDB(IAsyncDatabaseExecutor, DatabaseDateTimeHandler, ILanguageBranchRepository, IApprovalTypeRegistry)

Declaration
public ApprovalDefinitionDB(IAsyncDatabaseExecutor databaseHandler, DatabaseDateTimeHandler databaseTimeResolver, ILanguageBranchRepository languageBranchRepository, IApprovalTypeRegistry approvalTypeRegistry)
Parameters
Type Name Description
IAsyncDatabaseExecutor databaseHandler
DatabaseDateTimeHandler databaseTimeResolver
ILanguageBranchRepository languageBranchRepository
IApprovalTypeRegistry approvalTypeRegistry

Methods

DeleteAsync(IEnumerable<Int32>)

Declaration
public virtual Task DeleteAsync(IEnumerable<int> approvalDefinitionIDs)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> approvalDefinitionIDs
Returns
Type Description
System.Threading.Tasks.Task

DeleteVersionAsync(Int32)

Declaration
public virtual Task DeleteVersionAsync(int approvalDefinitionVersionID)
Parameters
Type Name Description
System.Int32 approvalDefinitionVersionID
Returns
Type Description
System.Threading.Tasks.Task

GetCurrentAsync(Int32)

Declaration
public virtual Task<ApprovalDefinition> GetCurrentAsync(int approvalDefinitionID)
Parameters
Type Name Description
System.Int32 approvalDefinitionID
Returns
Type Description
System.Threading.Tasks.Task<ApprovalDefinition>

GetCurrentAsync(String)

Declaration
public virtual Task<ApprovalDefinition> GetCurrentAsync(string approvalDefinitionKey)
Parameters
Type Name Description
System.String approvalDefinitionKey
Returns
Type Description
System.Threading.Tasks.Task<ApprovalDefinition>

GetCurrentItemsAsync(IEnumerable<Int32>)

Declaration
public virtual Task<IEnumerable<ApprovalDefinition>> GetCurrentItemsAsync(IEnumerable<int> approvalDefinitionIDs)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> approvalDefinitionIDs
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ApprovalDefinition>>

GetCurrentItemsAsync(IEnumerable<String>)

Declaration
public virtual Task<IEnumerable<ApprovalDefinition>> GetCurrentItemsAsync(IEnumerable<string> approvalDefinitionKeys)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> approvalDefinitionKeys
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ApprovalDefinition>>

GetVersionAsync(Int32)

Declaration
public virtual Task<ApprovalDefinition> GetVersionAsync(int approvalDefinitionVersionID)
Parameters
Type Name Description
System.Int32 approvalDefinitionVersionID
Returns
Type Description
System.Threading.Tasks.Task<ApprovalDefinition>

ListAsync(Int32)

Declaration
public virtual Task<IEnumerable<ApprovalDefinition>> ListAsync(int approvalDefinitionID)
Parameters
Type Name Description
System.Int32 approvalDefinitionID
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ApprovalDefinition>>

SaveAsync(ApprovalDefinition, String)

Declaration
public virtual Task SaveAsync(ApprovalDefinition approvalDefinition, string approvalDefinitionKey)
Parameters
Type Name Description
ApprovalDefinition approvalDefinition
System.String approvalDefinitionKey
Returns
Type Description
System.Threading.Tasks.Task

Extension Methods