Class ApprovalDB
Inheritance
System.Object
ApprovalDB
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration(IncludeServiceAccessor = true)]
public class ApprovalDB : Object
Constructors
ApprovalDB(IAsyncDatabaseExecutor, DatabaseDateTimeHandler, IApprovalTypeRegistry)
Declaration
public ApprovalDB(IAsyncDatabaseExecutor databaseHandler, DatabaseDateTimeHandler databaseTimeResolver, IApprovalTypeRegistry approvalTypeRegistry)
Parameters
Methods
DeleteAsync(IEnumerable<Int32>)
Declaration
public virtual Task DeleteAsync(IEnumerable<int> approvalIDs)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Int32> |
approvalIDs |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
ListAsync(ApprovalQuery)
Declaration
public virtual Task<IEnumerable<Approval>> ListAsync(ApprovalQuery query)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Approval>> |
|
ListAsync(ApprovalQuery, IEnumerable<String>, Int64, Int32)
Declaration
public virtual Task<PagedApprovalResult> ListAsync(ApprovalQuery query, IEnumerable<string> roles, long startIndex, int maxRows)
Parameters
Type |
Name |
Description |
ApprovalQuery |
query |
|
System.Collections.Generic.IEnumerable<System.String> |
roles |
|
System.Int64 |
startIndex |
|
System.Int32 |
maxRows |
|
Returns
ListAsync(IEnumerable<Int32>)
Declaration
public virtual Task<IEnumerable<Approval>> ListAsync(IEnumerable<int> ids)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Int32> |
ids |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Approval>> |
|
ListAsync(IEnumerable<String>)
Declaration
public virtual Task<IEnumerable<Approval>> ListAsync(IEnumerable<string> approvalKeys)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
approvalKeys |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Approval>> |
|
ListDecisionAsync(Int32, Nullable<Int32>)
Declaration
public virtual Task<IEnumerable<ApprovalStepDecision>> ListDecisionAsync(int approvalID, Nullable<int> stepIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
approvalID |
|
System.Nullable<System.Int32> |
stepIndex |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ApprovalStepDecision>> |
|
SaveAsync(IEnumerable<Approval>, String, DateTime)
Declaration
public virtual Task SaveAsync(IEnumerable<Approval> approvals, string username, DateTime saved)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<Approval> |
approvals |
|
System.String |
username |
|
System.DateTime |
saved |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
SaveDecisionAsync(Int32, ApprovalStepDecision)
Declaration
public virtual Task SaveDecisionAsync(int approvalID, ApprovalStepDecision decision)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
UpdateAsync(Approval)
Declaration
public virtual Task UpdateAsync(Approval approval)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Extension Methods