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

Class ApprovalDefinitionDB

Inheritance
System.Object
ApprovalDefinitionDB
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAccess.Internal
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
[ServiceConfiguration(IncludeServiceAccessor = true)]
public class ApprovalDefinitionDB

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